Index: chrome/common/extensions/extension_l10n_util.cc |
diff --git a/chrome/common/extensions/extension_l10n_util.cc b/chrome/common/extensions/extension_l10n_util.cc |
index 07e86cc4c6b940aeb115e3ee10810ea6e6518edc..ecb2574c914ec95df2856f1c860b3de2a2f2eba4 100644 |
--- a/chrome/common/extensions/extension_l10n_util.cc |
+++ b/chrome/common/extensions/extension_l10n_util.cc |
@@ -167,6 +167,18 @@ bool LocalizeManifest(const extensions::MessageBundle& messages, |
if (!LocalizeManifestValue(keys::kLaunchWebURL, messages, manifest, error)) |
return false; |
+ // Initialize description of commmands. |
+ base::DictionaryValue* commands_handler = NULL; |
+ if (manifest->GetDictionary(keys::kCommands, &commands_handler)) { |
+ for (DictionaryValue::Iterator iter(*commands_handler); !iter.IsAtEnd(); |
+ iter.Advance()) { |
+ key.assign(base::StringPrintf("commands.%s.description", |
+ iter.key().c_str())); |
+ if (!LocalizeManifestValue(key, messages, manifest, error)) |
+ return false; |
+ } |
+ } |
+ |
// Add current locale key to the manifest, so we can overwrite prefs |
// with new manifest when chrome locale changes. |
manifest->SetString(keys::kCurrentLocale, CurrentLocaleOrDefault()); |