summaryrefslogtreecommitdiffstats
path: root/chrome/browser/spellchecker.cc
diff options
context:
space:
mode:
authorsidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 17:40:52 +0000
committersidchat@google.com <sidchat@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-22 17:40:52 +0000
commit053ab0fc2e0ab75706a473df97f68835fbce1244 (patch)
treecbce4a9b032c0e29a87167278b5d2dcfbd98ce3d /chrome/browser/spellchecker.cc
parenta6ae328a6bb0d4f476cd772fcddd3529842f5df3 (diff)
downloadchromium_src-053ab0fc2e0ab75706a473df97f68835fbce1244.zip
chromium_src-053ab0fc2e0ab75706a473df97f68835fbce1244.tar.gz
chromium_src-053ab0fc2e0ab75706a473df97f68835fbce1244.tar.bz2
Add Australian English spell check support.
Issue=8934 Review URL: http://codereview.chromium.org/89006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14204 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellchecker.cc')
-rw-r--r--chrome/browser/spellchecker.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/spellchecker.cc b/chrome/browser/spellchecker.cc
index 91fc9c7..346d592f 100644
--- a/chrome/browser/spellchecker.cc
+++ b/chrome/browser/spellchecker.cc
@@ -30,6 +30,7 @@ using base::TimeTicks;
static const int kMaxSuggestions = 5; // Max number of dictionary suggestions.
+
namespace {
static const struct {
@@ -41,6 +42,7 @@ static const struct {
} g_supported_spellchecker_languages[] = {
{"en-US", "en-US"},
{"en-GB", "en-GB"},
+ {"en-AU", "en-AU"},
{"fr", "fr-FR"},
{"it", "it-IT"},
{"de", "de-DE"},
@@ -129,7 +131,7 @@ SpellChecker::Language SpellChecker::GetCorrespondingSpellCheckLanguage(
// Look for a match by comparing only language parts. All the 'en-RR'
// except for 'en-GB' exactly matched in the above loop, will match
- // 'en-US'. This is not ideal because 'en-AU', 'en-ZA', 'en-NZ' had
+ // 'en-US'. This is not ideal because 'en-ZA', 'en-NZ' had
// better be matched with 'en-GB'. This does not handle cases like
// 'az-Latn-AZ' vs 'az-Arab-AZ', either, but we don't use 3-part
// locale ids with a script code in the middle, yet.
@@ -344,6 +346,7 @@ FilePath SpellChecker::GetVersionedFileName(const Language& input_language,
// The corresponding version.
const char* version;
} special_version_string[] = {
+ {"en-AU", "-1-1"},
{"en-GB", "-1-1"},
{"es-ES", "-1-1"},
{"nl-NL", "-1-1"},