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

Unified Diff: chrome/browser/extensions/extension_l10n_util.h

Issue 173487: Implemented the rest of loading/parsing logic for extension i18n:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_l10n_util.h
===================================================================
--- chrome/browser/extensions/extension_l10n_util.h (revision 24127)
+++ chrome/browser/extensions/extension_l10n_util.h (working copy)
@@ -41,6 +41,16 @@
Extension* extension,
std::string* error);
+// Loads messages file for default locale, and application locale (application
+// locale doesn't have to exist).
+// It creates simplified in-memory representation of name-value pairs, where
+// value part is actual message with placeholders resolved.
+// Returns true if it can load default locale messages file, and all messages
+// are valid.
+bool LoadMessageCatalogs(const FilePath& locale_path,
+ Extension* extension,
+ std::string* error);
+
} // namespace extension_l10n_util
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_L10N_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698