summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_file_util.cc
diff options
context:
space:
mode:
authorcira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 19:08:23 +0000
committercira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 19:08:23 +0000
commit863d52e6470909dce3856ce207d1e5f6229524cc (patch)
tree5ccac33fa1169e56058a2c32a8af04d8228c6620 /chrome/browser/extensions/extension_file_util.cc
parentda4d0186a344a4584b909acde48d43fe7ccf40f7 (diff)
downloadchromium_src-863d52e6470909dce3856ce207d1e5f6229524cc.zip
chromium_src-863d52e6470909dce3856ce207d1e5f6229524cc.tar.gz
chromium_src-863d52e6470909dce3856ce207d1e5f6229524cc.tar.bz2
Implementing better fallback algorithm.
Before: current_locale->default_locale Now: current_locale->chain_of_parent_locales->default_locale If default_locale is de, and current locale en_US, we follow: en_US -> en -> de en is not a Chrome locale (only en_US, en_GB are), but we fake it to allow this kind of fallback. Developers can implement common locale root with most of the messages (like en) and put locale specifics in en_GB (color->colour) or en_US. You can even symlink en and en_US and save on work. I am planning on fixing loading local resources too, to use this child->parent fallback. BUG=12131 Review URL: http://codereview.chromium.org/293037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_file_util.cc')
-rw-r--r--chrome/browser/extensions/extension_file_util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_file_util.cc b/chrome/browser/extensions/extension_file_util.cc
index 0bd9507..23bd085 100644
--- a/chrome/browser/extensions/extension_file_util.cc
+++ b/chrome/browser/extensions/extension_file_util.cc
@@ -362,6 +362,7 @@ ExtensionMessageBundle* LoadLocaleInfo(const FilePath& extension_path,
extension_l10n_util::LoadMessageCatalogs(locale_path,
default_locale,
app_locale,
+ locales,
error);
return message_bundle;
}