summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_l10n_util.h
diff options
context:
space:
mode:
authorgroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 04:23:19 +0000
committergroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 04:23:19 +0000
commitbb0bdeb6cd05396316d1a026481e86997253f762 (patch)
treea99b3af53b224755b3961331409845ce2e2a13e7 /chrome/common/extensions/extension_l10n_util.h
parent61d7e5e53c8c43a5ad6653038ab9bac22aac0fd9 (diff)
downloadchromium_src-bb0bdeb6cd05396316d1a026481e86997253f762.zip
chromium_src-bb0bdeb6cd05396316d1a026481e86997253f762.tar.gz
chromium_src-bb0bdeb6cd05396316d1a026481e86997253f762.tar.bz2
[Web Intents] Localization of intent titles for CWS suggestions
R=mpcomplete@chromium.org,gbillock@chromium.org BUG=130432 TEST=CWSIntentsRegistryTest.LocalizeMatchingLocale:ExtensionL10nUtil.GetAllFallbackLocales:ExtensionL10nUtil.LoadMessageCatalogs* Review URL: https://chromiumcodereview.appspot.com/10790087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_l10n_util.h')
-rw-r--r--chrome/common/extensions/extension_l10n_util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_l10n_util.h b/chrome/common/extensions/extension_l10n_util.h
index 1ccf6c3..a080693 100644
--- a/chrome/common/extensions/extension_l10n_util.h
+++ b/chrome/common/extensions/extension_l10n_util.h
@@ -68,6 +68,13 @@ std::string CurrentLocaleOrDefault();
// proper fallback.
void GetAllLocales(std::set<std::string>* all_locales);
+// Provides a vector of all fallback locales for message localization.
+// The vector is ordered by priority of locale - |application_locale|,
+// first_parent, ..., |default_locale|.
+void GetAllFallbackLocales(const std::string& application_locale,
+ const std::string& default_locale,
+ std::vector<std::string>* all_fallback_locales);
+
// Adds valid locales to the extension.
// 1. Do nothing if _locales directory is missing (not an error).
// 2. Get list of Chrome locales.