From 031c396f71d36aa193c262be346a0632f93d3f9b Mon Sep 17 00:00:00 2001 From: "kathyw@chromium.org" Date: Wed, 27 Jan 2010 21:23:05 +0000 Subject: Note that extName isn't currently accepted by the gallery. TBR=cira TEST=none BUG=none Review URL: http://codereview.chromium.org/555136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37310 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/extensions/docs/i18n.html | 20 ++++++++++++++++++++ chrome/common/extensions/docs/static/i18n.html | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/chrome/common/extensions/docs/i18n.html b/chrome/common/extensions/docs/i18n.html index a7ecdc8..e67ab85 100644 --- a/chrome/common/extensions/docs/i18n.html +++ b/chrome/common/extensions/docs/i18n.html @@ -330,6 +330,19 @@ Here's what the extension looks like when it's internationalized In the manifest.json file, "Hello World" has been changed to "__MSG_extName__", and a new "default_locale" item has the value "en". In the JavaScript file, "Hello World" has been changed to chrome.i18n.getMessage("extName"). A new file named _locales/en/messages.json defines "extName". +

+Bug workaround: +Substitute name +wherever you see extName +in the preceding figure. +If you try to upload an internationalized extension +that uses any message not named "name" +to hold the value of the "name" manifest field, +the gallery erroneously rejects the extension +and displays the following error message: +"Missing extension name in default locale." +

+

Important: If an extension has a _locales directory, @@ -410,6 +423,13 @@ with a new Spanish translation. This looks the same as the previous figure, but with a new file at _locales/es/messages.json that contains a Spanish translation of the messages. +

+Bug workaround: +Substitute name +wherever you see extName +in the preceding figure. +Details. +

Locales

diff --git a/chrome/common/extensions/docs/static/i18n.html b/chrome/common/extensions/docs/static/i18n.html index 328fc5e..428d604 100644 --- a/chrome/common/extensions/docs/static/i18n.html +++ b/chrome/common/extensions/docs/static/i18n.html @@ -67,6 +67,19 @@ Here's what the extension looks like when it's internationalized alt='In the manifest.json file, "Hello World" has been changed to "__MSG_extName__", and a new "default_locale" item has the value "en". In the JavaScript file, "Hello World" has been changed to chrome.i18n.getMessage("extName"). A new file named _locales/en/messages.json defines "extName".' width="782" height="228"> +

+Bug workaround: +Substitute name +wherever you see extName +in the preceding figure. +If you try to upload an internationalized extension +that uses any message not named "name" +to hold the value of the "name" manifest field, +the gallery erroneously rejects the extension +and displays the following error message: +"Missing extension name in default locale." +

+

Important: If an extension has a _locales directory, @@ -150,6 +163,13 @@ with a new Spanish translation. alt='This looks the same as the previous figure, but with a new file at _locales/es/messages.json that contains a Spanish translation of the messages.' width="782" height="358"> +

+Bug workaround: +Substitute name +wherever you see extName +in the preceding figure. +Details. +

Locales

-- cgit v1.1