summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension.h
diff options
context:
space:
mode:
authorcira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-28 19:38:49 +0000
committercira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-28 19:38:49 +0000
commit75e126b937df6fcf5590f607adb460099211fb5a (patch)
treedea2e8c33b6777b36df3435179fd9e6840b77710 /chrome/common/extensions/extension.h
parent99a19b7411d408c7471b3ee2c452f06f4d09259d (diff)
downloadchromium_src-75e126b937df6fcf5590f607adb460099211fb5a.zip
chromium_src-75e126b937df6fcf5590f607adb460099211fb5a.tar.gz
chromium_src-75e126b937df6fcf5590f607adb460099211fb5a.tar.bz2
Implementing chrome.i18n.getMessage call, that loads message from the extension catalog, and if necessary replaces placeholders (up to 9).
I have 3 forms of getMessage call: getMessage("name") for simple messages without placeholders. getMessage("name", "one param") for messages with only one placeholder. getMessage("name", ["one", "two"]) for messages with only one or more placeholders. getMessage returns string. BUG=12131 TEST=Load samples/i18n extension (switch Chrome to sr locale) and observe ext. name, description and toolstrip texts should be in Serbian. Review URL: http://codereview.chromium.org/225009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27393 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r--chrome/common/extensions/extension.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 5589500..6c085ab 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -14,8 +14,8 @@
#include "base/scoped_ptr.h"
#include "base/values.h"
#include "base/version.h"
-#include "chrome/browser/extensions/extension_message_bundle.h"
#include "chrome/browser/extensions/user_script_master.h"
+#include "chrome/common/extensions/extension_message_bundle.h"
#include "chrome/common/extensions/user_script.h"
#include "chrome/common/extensions/url_pattern.h"
#include "chrome/common/page_action.h"