diff options
Diffstat (limited to 'chrome/browser/spellchecker.h')
-rw-r--r-- | chrome/browser/spellchecker.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/spellchecker.h b/chrome/browser/spellchecker.h index 6d59a2d..42279c2 100644 --- a/chrome/browser/spellchecker.h +++ b/chrome/browser/spellchecker.h @@ -92,6 +92,11 @@ class SpellChecker : public base::RefCountedThreadSafe<SpellChecker> { // spell check language. For example, for hi, it returns hi-IN. static Language GetSpellCheckLanguageRegion(Language input_language); + // This function returns ll (language code) from ll-RR where 'RR' (region + // code) is redundant. However, if the region code matters, it's preserved. + // That is, it returns 'hi' and 'en-GB' for 'hi-IN' and 'en-GB' respectively. + static Language GetLanguageFromLanguageRegion(Language input_language); + private: // Download dictionary files when required. class DictionaryDownloadController; |