DescriptionImplementing 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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29684
Patch Set 1 #
Total comments: 3
Patch Set 2 : '' #Messages
Total messages: 4 (0 generated)
|