summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkathyw@chromium.org <kathyw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-27 21:23:05 +0000
committerkathyw@chromium.org <kathyw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-27 21:23:05 +0000
commit031c396f71d36aa193c262be346a0632f93d3f9b (patch)
tree75e2fe0d163827e35de0eb942e2a3165cb0011db
parent1d7b60c36369815b2d08ab7836d2193f85a9b946 (diff)
downloadchromium_src-031c396f71d36aa193c262be346a0632f93d3f9b.zip
chromium_src-031c396f71d36aa193c262be346a0632f93d3f9b.tar.gz
chromium_src-031c396f71d36aa193c262be346a0632f93d3f9b.tar.bz2
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
-rw-r--r--chrome/common/extensions/docs/i18n.html20
-rw-r--r--chrome/common/extensions/docs/static/i18n.html20
2 files changed, 40 insertions, 0 deletions
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
<img src="images/i18n-after-1.gif" alt="In the manifest.json file, &quot;Hello World&quot; has been changed to &quot;__MSG_extName__&quot;, and a new &quot;default_locale&quot; item has the value &quot;en&quot;. In the JavaScript file, &quot;Hello World&quot; has been changed to chrome.i18n.getMessage(&quot;extName&quot;). A new file named _locales/en/messages.json defines &quot;extName&quot;." width="782" height="228">
+<p class="warning" id="namebug">
+<b>Bug workaround:</b>
+Substitute <code>name</code>
+wherever you see <code>extName</code>
+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."
+</p>
+
<p class="note">
<b>Important:</b>
If an extension has a <code>_locales</code> directory,
@@ -410,6 +423,13 @@ with a new Spanish translation.
<img src="images/i18n-after-2.gif" 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">
+<p class="warning" id="namebug2">
+<b>Bug workaround:</b>
+Substitute <code>name</code>
+wherever you see <code>extName</code>
+in the preceding figure.
+<a href="#namebug">Details</a>.
+</p>
<h2 id="overview-locales">Locales</h2>
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">
+<p class="warning" id="namebug">
+<b>Bug workaround:</b>
+Substitute <code>name</code>
+wherever you see <code>extName</code>
+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."
+</p>
+
<p class="note">
<b>Important:</b>
If an extension has a <code>_locales</code> 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">
+<p class="warning" id=namebug2>
+<b>Bug workaround:</b>
+Substitute <code>name</code>
+wherever you see <code>extName</code>
+in the preceding figure.
+<a href="#namebug">Details</a>.
+</p>
<h2 id="overview-locales">Locales</h2>