diff options
author | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-12 18:54:11 +0000 |
---|---|---|
committer | sidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-12 18:54:11 +0000 |
commit | 70aa77609a881545064e3df7ffa580d933c4f76f (patch) | |
tree | 07d1ebee98d516c3796dbbde3c5f728fdaf4cc90 /chrome/browser/spellchecker.cc | |
parent | b401b1eb42966b223cff36de89d9083d76870a80 (diff) | |
download | chromium_src-70aa77609a881545064e3df7ffa580d933c4f76f.zip chromium_src-70aa77609a881545064e3df7ffa580d933c4f76f.tar.gz chromium_src-70aa77609a881545064e3df7ffa580d933c4f76f.tar.bz2 |
Part 3 of 'Add common words for each language, and remove forbidden words'
Update spellchecker to use version 1.2 dictionaries for 19 languages.
Issue=2837
Review URL: http://codereview.chromium.org/17337
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker.cc')
-rw-r--r-- | chrome/browser/spellchecker.cc | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/chrome/browser/spellchecker.cc b/chrome/browser/spellchecker.cc index 65513f4..b8a7bc7 100644 --- a/chrome/browser/spellchecker.cc +++ b/chrome/browser/spellchecker.cc @@ -301,14 +301,14 @@ void SpellChecker::set_file_is_downloading(bool value) { std::wstring SpellChecker::GetVersionedFileName(const Language& language, const std::wstring& dict_dir) { // The default version string currently in use. - static const wchar_t kDefaultVersionString[] = L"-1-1"; + static const wchar_t kDefaultVersionString[] = L"-1-2"; // Use this struct to insert version strings for dictionary files which have - // special version strings, other than the default version string. - // For de-DE, we are currently using de-DE-1-1-1 for versioning, because - // de-DE-1-1.bdic, in the download server, corresponds to a less used - // dictionary. This version, i.e., de-DE-1-1-1.bdic, is actually renamed - // from de-DE-neu-1-1.bic. + // special version strings, other than the default version string. For eight + // languages (included below in the struct), the version is kept at 1-1. The + // others (19 of them) have been updated to new default version 1-2 which + // contains many new words. + // TODO (sidchat): Work on these 8 languages to bring them upto version 1-2. static const struct { // The language input. const char* language; @@ -316,7 +316,14 @@ std::wstring SpellChecker::GetVersionedFileName(const Language& language, // The corresponding version. const char* version; } special_version_string[] = { - {"de-DE", "-1-1-1"}, + {"en-GB", "-1-1"}, + {"es-ES", "-1-1"}, + {"nl-NL", "-1-1"}, + {"ru-RU", "-1-1"}, + {"sv-SE", "-1-1"}, + {"he-IL", "-1-1"}, + {"el-GR", "-1-1"}, + {"hi-IN", "-1-1"} }; // Generate the bdict file name using default version string or special |