summaryrefslogtreecommitdiffstats
path: root/ui/base/l10n/l10n_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/l10n/l10n_util.h')
-rw-r--r--ui/base/l10n/l10n_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/base/l10n/l10n_util.h b/ui/base/l10n/l10n_util.h
index a71240c..bc0ff60 100644
--- a/ui/base/l10n/l10n_util.h
+++ b/ui/base/l10n/l10n_util.h
@@ -24,6 +24,9 @@ namespace l10n_util {
// std::string as an argument.
UI_BASE_EXPORT std::string GetCanonicalLocale(const std::string& locale);
+// Takes normalized locale as |locale|. Returns language part (before '-').
+UI_BASE_EXPORT std::string GetLanguage(const std::string& locale);
+
// This method translates a generic locale name to one of the locally defined
// ones. This method returns true if it succeeds.
UI_BASE_EXPORT bool CheckAndResolveLocale(const std::string& locale,
@@ -185,6 +188,10 @@ UI_BASE_EXPORT void GetAcceptLanguagesForLocale(
// designer given constraints which might dependent on the language used.
UI_BASE_EXPORT int GetLocalizedContentsWidthInPixels(int pixel_resource_id);
+const char* const* GetAcceptLanguageListForTesting();
+
+size_t GetAcceptLanguageListSizeForTesting();
+
} // namespace l10n_util
#endif // UI_BASE_L10N_L10N_UTIL_H_