OLD | NEW |
1 <div id="pageData-title" class="pageData">i18n</div> | 1 <div id="pageData-name" class="pageData">i18n</div> |
2 | 2 |
3 <!-- BEGIN AUTHORED CONTENT --> | 3 <!-- BEGIN AUTHORED CONTENT --> |
4 <p id="classSummary"> | 4 <p id="classSummary"> |
5 Use the <code>chrome.i18n</code> module to manipulate the i18n related browser | 5 Use the <code>chrome.i18n</code> module to manipulate the i18n related browser |
6 settings, such as the accept languages. | 6 settings, such as the accept languages. |
7 <!-- [PENDING: add when getMessage works: "or to get localized messages for the
current locale."] --> | 7 <!-- [PENDING: add when getMessage works: "or to get localized messages for the
current locale."] --> |
8 </p> | 8 </p> |
9 | 9 |
10 <h3 id="overview-examples">Examples</h3> | 10 <h3 id="overview-examples">Examples</h3> |
11 | 11 |
(...skipping 20 matching lines...) Expand all Loading... |
32 | 32 |
33 <pre> | 33 <pre> |
34 function getMessage() { | 34 function getMessage() { |
35 var message = chrome.i18n.getMessage("click_here", ["arg1", "arg2"]); | 35 var message = chrome.i18n.getMessage("click_here", ["arg1", "arg2"]); |
36 document.getElementById("languageSpan").innerHTML = message; | 36 document.getElementById("languageSpan").innerHTML = message; |
37 } | 37 } |
38 </pre> | 38 </pre> |
39 --> | 39 --> |
40 | 40 |
41 <!-- END AUTHORED CONTENT --> | 41 <!-- END AUTHORED CONTENT --> |
OLD | NEW |