| OLD | NEW |
| 1 <div id="pageData-name" class="pageData">Internationalization (i18n)</div> | 1 <div id="pageData-name" class="pageData">Internationalization (i18n)</div> |
| 2 | 2 |
| 3 <!-- | 3 <!-- |
| 4 [NOTEs for editors: | 4 [NOTEs for editors: |
| 5 * Try to be consistent about string vs. message (it's probably not yet). | 5 * Try to be consistent about string vs. message (it's probably not yet). |
| 6 --> | 6 --> |
| 7 | 7 |
| 8 <!-- BEGIN AUTHORED CONTENT --> | 8 <!-- BEGIN AUTHORED CONTENT --> |
| 9 <p id="classSummary"> | 9 <p id="classSummary"> |
| 10 An <em>internationalized</em> extension | 10 An <em>internationalized</em> extension |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 | 302 |
| 303 <h3 id="locales-supported">Supported locales</h3> | 303 <h3 id="locales-supported">Supported locales</h3> |
| 304 | 304 |
| 305 <p> | 305 <p> |
| 306 Your extension can use any of the following locales: | 306 Your extension can use any of the following locales: |
| 307 </p> | 307 </p> |
| 308 | 308 |
| 309 <p> | 309 <p> |
| 310 <code>am ar bg bn ca cs da de el en en_GB en_US es es_419 et fi
fil fr gu he hi hr hu id it ja kn ko lt | 310 <code>am ar bg bn ca cs da de el en en_GB en_US es es_419 et fi
fil fr gu he hi hr hu id it ja kn ko lt |
| 311 lv ml mr nb nl or pl pt pt_BR pt_PT ro ru sk sl sr sv sw ta te
th tr uk vi zh zh_CN zh_TW</code> | 311 lv ml mr <!-- nb --> nl or pl pt pt_BR pt_PT ro ru sk sl sr sv sw
ta te th tr uk vi zh zh_CN zh_TW</code> |
| 312 </p> | 312 </p> |
| 313 | 313 |
| 314 | 314 |
| 315 <h3 id="locales-usage">How extensions find strings</h3> | 315 <h3 id="locales-usage">How extensions find strings</h3> |
| 316 | 316 |
| 317 <p> | 317 <p> |
| 318 You don't have to define every string for every locale | 318 You don't have to define every string for every locale |
| 319 that your internationalized extension supports. | 319 that your internationalized extension supports. |
| 320 As long as the default locale's <code>messages.json</code> file | 320 As long as the default locale's <code>messages.json</code> file |
| 321 has a value for every string, | 321 has a value for every string, |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 }) | 579 }) |
| 580 } | 580 } |
| 581 </pre> | 581 </pre> |
| 582 | 582 |
| 583 <p> | 583 <p> |
| 584 For details on calling <code>getAcceptLanguages()</code>, see the | 584 For details on calling <code>getAcceptLanguages()</code>, see the |
| 585 <a href="#method-getAcceptLanguages">API reference</a>. | 585 <a href="#method-getAcceptLanguages">API reference</a>. |
| 586 </p> | 586 </p> |
| 587 | 587 |
| 588 <!-- END AUTHORED CONTENT --> | 588 <!-- END AUTHORED CONTENT --> |
| OLD | NEW |