Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Unified Diff: chrome/browser/chromeos/input_method/input_method_util.h

Issue 2808106: Show native language names in the add language overlay. (Closed)
Patch Set: minor change Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/input_method/input_method_util.h
diff --git a/chrome/browser/chromeos/input_method/input_method_util.h b/chrome/browser/chromeos/input_method/input_method_util.h
index 04db1905f377e4cc9b79b0fb91ca9e25dd4bdc91..78883aeaaf42a2163df153dadfa823f248776cab 100644
--- a/chrome/browser/chromeos/input_method/input_method_util.h
+++ b/chrome/browser/chromeos/input_method/input_method_util.h
@@ -96,10 +96,17 @@ std::string GetInputMethodDisplayNameFromId(const std::string& input_method_id);
// Converts a language code to a language display name, using the
// current application locale. MaybeRewriteLanguageName() is called
// internally.
-// Examples: "fr" => "French"
+// Examples: "fi" => "French"
Yusuke Sato 2010/08/05 08:52:36 French -> Finnish
satorux1 2010/08/05 08:54:29 Done.
// "en-US" => "English (United States)"
std::wstring GetLanguageDisplayNameFromCode(const std::string& language_code);
+// Converts a language code to a language native display name.
+// MaybeRewriteLanguageName() is called internally.
+// Examples: "fi" => "suomi" (rather than Finnish)
+// "en-US" => "English (United States)"
+std::wstring GetLanguageNativeDisplayNameFromCode(
+ const std::string& language_code);
+
// Sorts the given language codes by their corresponding language names,
// using the unicode string comparator. Uses unstable sorting.
void SortLanguageCodesByNames(std::vector<std::string>* language_codes);
« no previous file with comments | « chrome/browser/chromeos/dom_ui/language_options_handler.cc ('k') | chrome/browser/chromeos/input_method/input_method_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698