Home | History | Annotate | Download | only in docs

Lines Matching full:i18n

19   <title>Internationalization (i18n) - Google Chrome Extensions - Google Code</title></head>
254 <h1 class="page_title">Internationalization (i18n)</h1>
296 <a href="#apiReference">API reference: chrome.i18n</a>
344 <div id="static"><div id="pageData-name" class="pageData">Internationalization (i18n)</div>
363 named <a href="i18n-messages.html"><code>messages.json</code></a>.
380 <img src="images/i18n-hierarchy.gif" alt="In the extension directory: manifest.json, *.html, *.js, _locales directory. In the _locales directory: en, es, and ko directories, each with a messages.json file." width="385" height="77">
390 <img src="images/i18n-before.gif" alt="A manifest.json file and a file with JavaScript. The .json file has &quot;name&quot;: &quot;Hello World&quot;. The JavaScript file has title = &quot;Hello World&quot;;" width="323" height="148">
407 <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">
438 <pre>chrome.i18n.getMessage("<em>messagename</em>")</pre>
480 <a href="i18n-messages.html">Formats: Locale-Specific Messages</a>.
498 <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">
511 <a href="http://code.google.com/apis/gadgets/docs/i18n.html#BIDI">
637 <a href="http://code.google.com/chrome/webstore/docs/i18n.html#localeTable">locales that the Chrome Web Store supports</a>.
697 <img src="images/i18n-strings.gif" alt="Four files: manifest.json and three messages.json files (for es, en, and en_GB). The es and en files show entries for messages named &quot;extName&quot; and &quot;colores&quot;; the en_GB file has just one entry (for &quot;colores&quot;)." width="493" height="488">
833 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/">examples/api/i18n</a>
857 var message = chrome.i18n.getMessage("click_here", ["string1", "string2"]);
867 status.innerText = chrome.i18n.getMessage("error", errorDetails);
884 <a href="i18n-messages.html">Locale-Specific Messages</a> page.
896 chrome.i18n.getAcceptLanguages(function(languageList) {
914 <h2>API reference: chrome.i18n</h2>
946 <span>chrome.i18n.getAcceptLanguages</span>(<span class="null"><span style="display: none; ">, </span><span>function</span>
1153 <span>chrome.i18n.getMessage</span>(<span class="null"><span style="display: none; ">, </span><span>string</span>
1195 <dd>The name of the message, as specified in the <a href="i18n-messages.html"><code>messages.json</code></a> file.</dd>