summaryrefslogtreecommitdiffstats
path: root/o3d/site_scons
diff options
context:
space:
mode:
authorcira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-18 21:07:39 +0000
committercira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-18 21:07:39 +0000
commit42b6f0f83579563a94bd9fdeec83574a1a932f18 (patch)
treebfdb770830f27f306eaeca8da46a6dd9e7ed8647 /o3d/site_scons
parent60ad3e2b8540ba00a2e5d0624fd2796e7780b11c (diff)
downloadchromium_src-42b6f0f83579563a94bd9fdeec83574a1a932f18.zip
chromium_src-42b6f0f83579563a94bd9fdeec83574a1a932f18.tar.gz
chromium_src-42b6f0f83579563a94bd9fdeec83574a1a932f18.tar.bz2
CL is the same as http://codereview.chromium.org/173487, but had to be moved to new CL number because I switched machines.
Implemented the rest of loading/parsing logic for extension i18n: 1. Loading message catalogs for default and application locale. 2. Parsing JSON and replacing placeholders with actual content within a message. 3. Creating unified dictionary (union of default and application dictionaries, where application dict. has priority for common messages). New class ExtensionMessageBundle holds new dictionary, and parses data. It's injected into Extension. ExtensionMessageHandler::ReplaceVariablesInString can replace both $placeholders$ and __MSG_messages__ in given string (HTML, manifest, actual message string...). Implemented actual manifest name/description replacement too, as an example. Extension is now pretty agnostic about localization, and this makes it easier to use message bundles with things that are not extensions... BUG=12131 Review URL: http://codereview.chromium.org/202063 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26609 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/site_scons')
0 files changed, 0 insertions, 0 deletions