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

Unified Diff: chrome/common/extensions/extension_constants.cc

Issue 170015: This change enables Chrome to load locale information for the extension. It d... (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/common/extensions/extension_constants.cc
===================================================================
--- chrome/common/extensions/extension_constants.cc (revision 23230)
+++ chrome/common/extensions/extension_constants.cc (working copy)
@@ -9,6 +9,7 @@
const wchar_t* kBackground = L"background_page";
const wchar_t* kContentScripts = L"content_scripts";
const wchar_t* kCss = L"css";
+const wchar_t* kDefaultLocale = L"default_locale";
const wchar_t* kDescription = L"description";
const wchar_t* kIcons = L"icons";
const wchar_t* kJs = L"js";
@@ -137,6 +138,12 @@
"Invalid value for theme images - tints must be decimal numbers.";
const char* kInvalidUpdateURL =
"Invalid value for update url: '[*]'.";
+const char* kInvalidDefaultLocale =
+ "Invalid value for default locale - locale name must be a string.";
const char* kThemesCannotContainExtensions =
"A theme cannot contain extensions code.";
+const char* kLocalesNoDefaultLocaleSpecified =
+ "Localization used, but default_locale wasn't specified in the manifest.";
+const char* kLocalesNoValidLocaleNamesListed =
+ "No valid locale name could be found in _locales directory.";
} // namespace extension_manifest_errors
Property changes on: chrome\common\extensions\extension_constants.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698