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

Unified Diff: ui/base/l10n/l10n_util.h

Issue 15987004: Translate: Filter and record languages whose names Chrome doesn't show (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made Translate.ServerReportedUnsupportedLanguage deprecated Created 7 years, 7 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: ui/base/l10n/l10n_util.h
diff --git a/ui/base/l10n/l10n_util.h b/ui/base/l10n/l10n_util.h
index 21ca83a3b18083ab9973cd38c538317b55d160ef..dda9890c534453c6b250285083ee6433b81a041c 100644
--- a/ui/base/l10n/l10n_util.h
+++ b/ui/base/l10n/l10n_util.h
@@ -32,6 +32,11 @@ namespace l10n_util {
// we fall back to en-us.
UI_EXPORT std::string GetApplicationLocale(const std::string& pref_locale);
+// Returns true if a display name for |locale| is available in the locale
+// |display_locale|.
+UI_EXPORT bool IsLocaleNameTranslated(const char* locale,
+ const std::string& display_locale);
+
// Given a locale code, return true if the OS is capable of supporting it.
// For instance, Oriya is not well supported on Windows XP and we return
// false for "or".

Powered by Google App Engine
This is Rietveld 408576698