diff options
author | rouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-08 18:04:31 +0000 |
---|---|---|
committer | rouslan@chromium.org <rouslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-08 18:04:31 +0000 |
commit | ccdc3010506fb0b5612071e367fe9ec36df7585b (patch) | |
tree | 43a787740bea5c3669f9877dfb4a5e1328322fa9 /chrome/common/spellcheck_common.cc | |
parent | b980432bf58f0cdb31482a20c8c0937a98f2f3a2 (diff) | |
download | chromium_src-ccdc3010506fb0b5612071e367fe9ec36df7585b.zip chromium_src-ccdc3010506fb0b5612071e367fe9ec36df7585b.tar.gz chromium_src-ccdc3010506fb0b5612071e367fe9ec36df7585b.tar.bz2 |
Bump dictionary versions to 3-0
Bumps the dictionary versions to 3-0 to:
1) Use the dictionaries with checksums.
2) Add dictionaries for ko, sq, and ta.
3) Update dictionaries for lv, nl, ru, and sv.
BUG=8397,8803,20083,61206,65115,104891,112227,113821
Review URL: https://chromiumcodereview.appspot.com/11566003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175549 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/spellcheck_common.cc')
-rw-r--r-- | chrome/common/spellcheck_common.cc | 50 |
1 files changed, 15 insertions, 35 deletions
diff --git a/chrome/common/spellcheck_common.cc b/chrome/common/spellcheck_common.cc index e2cbdea..1c0976b 100644 --- a/chrome/common/spellcheck_common.cc +++ b/chrome/common/spellcheck_common.cc @@ -21,7 +21,7 @@ struct LanguageVersion { static const LanguageRegion g_supported_spellchecker_languages[] = { // Several languages are not to be included in the spellchecker list: - // th-TH + // th-TH, vi-VI. {"af", "af-ZA"}, {"bg", "bg-BG"}, {"ca", "ca-ES"}, @@ -43,6 +43,7 @@ static const LanguageRegion g_supported_spellchecker_languages[] = { {"hu", "hu-HU"}, {"id", "id-ID"}, {"it", "it-IT"}, + {"ko", "ko"}, {"lt", "lt-LT"}, {"lv", "lv-LV"}, {"nb", "nb-NO"}, @@ -52,11 +53,13 @@ static const LanguageRegion g_supported_spellchecker_languages[] = { {"pt-PT", "pt-PT"}, {"ro", "ro-RO"}, {"ru", "ru-RU"}, + {"sh", "sh"}, {"sk", "sk-SK"}, {"sl", "sl-SI"}, - {"sh", "sh"}, + {"sq", "sq"}, {"sr", "sr"}, {"sv", "sv-SE"}, + {"ta", "ta-IN"}, {"tr", "tr-TR"}, {"uk", "uk-UA"}, {"vi", "vi-VN"}, @@ -87,40 +90,17 @@ std::string GetSpellCheckLanguageRegion(const std::string& input_language) { FilePath GetVersionedFileName(const std::string& input_language, const FilePath& dict_dir) { - // The default dictionary version is 1-2. These versions have been augmented - // with additional words found by the translation team. - static const char kDefaultVersionString[] = "-1-2"; - + // The default dictionary version is 3-0. This version indicates that the bdic + // file contains a checksum. + static const char kDefaultVersionString[] = "-3-0"; + + // Add non-default version strings here. Use the same version for all the + // dictionaries that you add at the same time. Increment the major version + // number if you're updating either dic or aff files. Increment the minor + // version number if you're updating only dic_delta files. static LanguageVersion special_version_string[] = { - {"es-ES", "-1-1"}, // 1-1: Have not been augmented with addtional words. - {"nl-NL", "-1-1"}, - {"sv-SE", "-1-1"}, - {"he-IL", "-1-1"}, - {"el-GR", "-1-1"}, - {"hi-IN", "-1-1"}, - {"tr-TR", "-1-1"}, - {"et-EE", "-1-1"}, - {"lt-LT", "-1-3"}, // 1-3 (Feb 2009): new words, as well as an upgraded - // dictionary. - {"pl-PL", "-1-3"}, - {"fr-FR", "-2-0"}, // 2-0 (2010): upgraded dictionaries. - {"hu-HU", "-2-0"}, - {"ro-RO", "-2-0"}, - {"ru-RU", "-2-0"}, - {"bg-BG", "-2-0"}, - {"sr", "-2-0"}, - {"uk-UA", "-2-0"}, - {"pt-BR", "-2-2"}, // 2-2 (Mar 2011): upgraded a dictionary. - {"sh", "-2-2"}, // 2-2 (Mar 2011): added a dictionary. - {"ca-ES", "-2-3"}, // 2-3 (May 2012): upgraded a dictionary. - {"sv-SE", "-2-3"}, // 2-3 (May 2012): upgraded a dictionary. - {"af-ZA", "-2-3"}, // 2-3 (May 2012): added a dictionary. - {"fo-FO", "-2-3"}, // 2-3 (May 2012): added a dictionary. - {"en-US", "-2-4"}, // 2-4 (October 2012): add more words. - {"en-CA", "-2-4"}, - {"en-GB", "-2-5"}, // 2-5 (Nov 2012): Added NOSUGGEST flag = !. - {"en-AU", "-2-5"}, // Marked 1 word in each. - + {"et-EE", "-1-1"}, // No dic/aff files + {"tr-TR", "-1-1"}, // No dic/aff files }; // Generate the bdict file name using default version string or special |