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

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

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.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_util.cc b/chrome/browser/chromeos/input_method/input_method_util.cc
index 01fa576c77b18a14274c840edb9c12b960be0110..b044bd956892b4f937020ab5661dc499e4515539 100644
--- a/chrome/browser/chromeos/input_method/input_method_util.cc
+++ b/chrome/browser/chromeos/input_method/input_method_util.cc
@@ -499,6 +499,13 @@ std::wstring GetLanguageDisplayNameFromCode(const std::string& language_code) {
true)));
}
+std::wstring GetLanguageNativeDisplayNameFromCode(
+ const std::string& language_code) {
+ return MaybeRewriteLanguageName(UTF16ToWide(
+ l10n_util::GetDisplayNameForLocale(
+ language_code, language_code, true)));
+}
+
void SortLanguageCodesByNames(std::vector<std::string>* language_codes) {
if (!g_browser_process) {
return;

Powered by Google App Engine
This is Rietveld 408576698