DescriptionImplemented 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 ExtensionMessageHandler 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.
BUG=12131
Patch Set 1 #Patch Set 2 : '' #Patch Set 3 : '' #
Total comments: 24
Messages
Total messages: 6 (0 generated)
|