summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api
diff options
context:
space:
mode:
authorkathyw@chromium.org <kathyw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-19 23:50:00 +0000
committerkathyw@chromium.org <kathyw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-19 23:50:00 +0000
commit1ab370fcdbcde6b2c1ff476a9db5c9ad183ecb24 (patch)
tree169337900027639484834ae0031e301ceaf6666a /chrome/common/extensions/api
parent140ee653f8fdfa395cb829e40e5cc991dc0e86e0 (diff)
downloadchromium_src-1ab370fcdbcde6b2c1ff476a9db5c9ad183ecb24.zip
chromium_src-1ab370fcdbcde6b2c1ff476a9db5c9ad183ecb24.tar.gz
chromium_src-1ab370fcdbcde6b2c1ff476a9db5c9ad183ecb24.tar.bz2
Fleshing out the i18n doc. Added a page for the messages.json
format (i18n-messages.html). Miscellaneous small improvements to i18n.html and to the generated API doc. TEST=none BUG=none Review URL: http://codereview.chromium.org/546060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api')
-rwxr-xr-xchrome/common/extensions/api/extension_api.json6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 1daeb09..5a3e6c5 100755
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -1635,11 +1635,11 @@
"name": "getMessage",
"type": "function",
"unprivileged": true,
- "description": "Gets the localized string for the specified message.",
+ "description": "Gets the localized string for the specified message. If the message is missing, this method returns an empty string (''). If the format of the <code>getMessage()</code> call is wrong &mdash; for example, <em>messageName</em> is not a string or the <em>substitutions</em> array is empty or has more than 9 elements &mdash; this method returns <code>undefined</code>.",
"parameters": [
{ "type": "string",
"name": "messageName",
- "description": "The name of the message, as specified in the <code>messages.json</code> file."
+ "description": "The name of the message, as specified in the <a href='i18n-messages.html'><code>messages.json</code></a> file."
},
{
"choices": [
@@ -1653,7 +1653,7 @@
],
"name": "substitutions",
"optional": true,
- "description": "1 - 9 substitution parameters, if the message requires any."
+ "description": "1 - 9 substitution strings, if the message requires any."
}
],
"returns": {