diff options
Diffstat (limited to 'chrome/common/spellcheck_common.h')
-rw-r--r-- | chrome/common/spellcheck_common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/common/spellcheck_common.h b/chrome/common/spellcheck_common.h index cafffa8..9074e16 100644 --- a/chrome/common/spellcheck_common.h +++ b/chrome/common/spellcheck_common.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -26,6 +26,12 @@ std::string GetCorrespondingSpellCheckLanguage(const std::string& language); // Get SpellChecker supported languages. void SpellCheckLanguages(std::vector<std::string>* languages); + +// 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. +std::string GetLanguageFromLanguageRegion(std::string input_language); + } // namespace SpellCheckCommon #endif // CHROME_COMMON_SPELLCHECK_COMMON_H_ |