diff options
author | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-04 02:42:27 +0000 |
---|---|---|
committer | hbono@chromium.org <hbono@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-04 02:42:27 +0000 |
commit | c849c65ec4bc668bb45542fa73285fed3430f6f2 (patch) | |
tree | 5e14a18cf49a61bb2b9a030e5e656ff7dcfb8c2e | |
parent | 8f5f2f25ffbd8416d1530054097c25d7070a5a1d (diff) | |
download | chromium_src-c849c65ec4bc668bb45542fa73285fed3430f6f2.zip chromium_src-c849c65ec4bc668bb45542fa73285fed3430f6f2.tar.gz chromium_src-c849c65ec4bc668bb45542fa73285fed3430f6f2.tar.bz2 |
Pull spellchecker dictionaries.
This change pulls a couple of update spellchecker dictionaries (Catalan and Swidish) to the Chromium tree and use them.
BUG=108933,111322,82125,124599
TEST=SpellCheckTest.SpellCheckText
Review URL: https://chromiumcodereview.appspot.com/10389189
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140258 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/common/spellcheck_common.cc | 6 | ||||
-rw-r--r-- | chrome/renderer/spellchecker/spellcheck_unittest.cc | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/chrome/common/spellcheck_common.cc b/chrome/common/spellcheck_common.cc index 827784b..c4e245c 100644 --- a/chrome/common/spellcheck_common.cc +++ b/chrome/common/spellcheck_common.cc @@ -17,6 +17,7 @@ static const struct { } g_supported_spellchecker_languages[] = { // Several languages are not to be included in the spellchecker list: // th-TH, uk-UA + {"af", "af-ZA"}, {"bg", "bg-BG"}, {"ca", "ca-ES"}, {"cs", "cs-CZ"}, @@ -29,6 +30,7 @@ static const struct { {"en-US", "en-US"}, {"es", "es-ES"}, {"et", "et-EE"}, + {"fo", "fo-FO"}, {"fr", "fr-FR"}, {"he", "he-IL"}, {"hi", "hi-IN"}, @@ -106,6 +108,10 @@ FilePath GetVersionedFileName(const std::string& input_language, {"en-CA", "-2-3"}, {"en-GB", "-2-3"}, {"en-AU", "-2-3"}, + {"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. }; // Generate the bdict file name using default version string or special diff --git a/chrome/renderer/spellchecker/spellcheck_unittest.cc b/chrome/renderer/spellchecker/spellcheck_unittest.cc index c0043b9..b979e66 100644 --- a/chrome/renderer/spellchecker/spellcheck_unittest.cc +++ b/chrome/renderer/spellchecker/spellcheck_unittest.cc @@ -432,6 +432,11 @@ TEST_F(SpellCheckTest, SpellCheckText) { const wchar_t* input; } kTestCases[] = { { + // Afrikaans + "af-ZA", + L"Google se missie is om die w\x00EAreld se inligting te organiseer en " + L"dit bruikbaar en toeganklik te maak." + }, { // Catalan "ca-ES", L"La missi\x00F3 de Google \x00E9s organitzar la informaci\x00F3 " @@ -517,6 +522,11 @@ TEST_F(SpellCheckTest, SpellCheckText) { L"\x00FClesanne on korraldada maailma teavet ja teeb selle " L"k\x00F5igile k\x00E4ttesaadavaks ja kasulikuks.", }, { + // Faroese + "fo-FO", + L"Google er at samskipa alla vitan \x00ED heiminum og gera hana alment " + L"atkomiliga og n\x00FDtiliga." + }, { // French "fr-FR", L"Google a pour mission d'organiser les informations \x00E0 " |