diff options
author | miguelg@chromium.org <miguelg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-13 01:55:09 +0000 |
---|---|---|
committer | miguelg@chromium.org <miguelg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-13 01:55:09 +0000 |
commit | 2f90b3cfd8085009dee52ca9e178af28a3ba508d (patch) | |
tree | 02942f0743a1b54f6a6bc61df9060161f486dbee /components | |
parent | 39dce5fd184c092c54216e3b75777343605e8068 (diff) | |
download | chromium_src-2f90b3cfd8085009dee52ca9e178af28a3ba508d.zip chromium_src-2f90b3cfd8085009dee52ca9e178af28a3ba508d.tar.gz chromium_src-2f90b3cfd8085009dee52ca9e178af28a3ba508d.tar.bz2 |
[Translate] Apply language synonyms to the target language
Expose ConvertLangCodeForTranslation and use it when converting the UX language
for all platforms (the performance hit should be negligible and this way
it is more legible than adding a #ifdef Android)
Fix a few unrelated typos on comments while at it.
BUG=311624
Review URL: https://codereview.chromium.org/68823004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@234706 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components')
-rw-r--r-- | components/translate/common/translate_util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/translate/common/translate_util.cc b/components/translate/common/translate_util.cc index 4e151d3..0ed624d 100644 --- a/components/translate/common/translate_util.cc +++ b/components/translate/common/translate_util.cc @@ -77,7 +77,7 @@ void ToTranslateLanguageSynonym(std::string* language) { if (main_part.empty()) return; - // Apply liner search here because number of items in the list is just four. + // Apply linear search here because number of items in the list is just four. for (size_t i = 0; i < arraysize(kLanguageCodeSynonyms); ++i) { if (main_part == kLanguageCodeSynonyms[i].chrome_language) { main_part = std::string(kLanguageCodeSynonyms[i].translate_language); |