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

Issue 293037: Implementing better fallback algorithm.... (Closed)

Created:
11 years, 2 months ago by Nebojša Ćirić
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews_googlegroups.com, Erik does not do reviews, ben+cc_chromium.org, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

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 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)
Nebojša Ćirić
11 years, 2 months ago (2009-10-20 23:21:20 UTC) #1
Aaron Boodman
http://codereview.chromium.org/293037/diff/1/7 File chrome/common/extensions/extension_message_bundle.cc (right): http://codereview.chromium.org/293037/diff/1/7#newcode39 Line 39: const std::vector<linked_ptr<DictionaryValue> >& locale_catalogs, It would be nice ...
11 years, 2 months ago (2009-10-20 23:52:56 UTC) #2
Nebojša Ćirić
All done. It's somewhat debatable if there is a much less code if I do ...
11 years, 2 months ago (2009-10-21 00:21:51 UTC) #3
Aaron Boodman
11 years, 2 months ago (2009-10-21 19:06:19 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698