Compare Revisions

Localization and Plurals

Revision 58869:

Revision 58869 by Mardak on

Revision 58870:

Revision 58870 by kenan3008 on

Title:
Localization and Plurals
Localization and Plurals
Slug:
Localization_and_Plurals
Localization_and_Plurals
Tags:
Internationalization, Localization
Internationalization, Localization
Content:

Revision 58869
Revision 58870
n112      <strong>Families</strong>: Slavic (Croatian, Serbian, Russin112      <strong>Families</strong>: Slavic (Bosnian, Croatian, Serbi
>an, Ukrainian)<br>>an, Russian, Ukrainian)<br>
n269      <img alt="Image:pluralForm-checker.0.3.png" class=" internan269      <img alt="Image:pluralForm-checker.0.3.png" class="internal
>l" src="/@api/deki/files/804/=PluralForm-checker.0.3.png">>" src="/@api/deki/files/804/=PluralForm-checker.0.3.png">
t446      In this example, the Irish plural rule was hardcoded, but tt446      In this example, the Irish plural rule was hardcoded, but t
>his could be a value specified in the .properties file. So for yo>his could be a value specified in the .properties file. So for yo
>ur extension, specify a pluralRule value in the .properties and c>ur extension, specify a pluralRule value in the .properties and c
>all <code>PluralForm.makeGetter(pluralRuleFromProperties)</code> >all <code>PluralForm.makeGetter(pluralRuleFromProperties)</code> 
>making sure to save the 2 returned functions. (You can use <a hre>making sure to save the 2 returned functions. (You can use <a hre
>f="/en/New_in_JavaScript_1.7#Destructuring_assignment" title="en/>f="/en/JavaScript/New_in_JavaScript/1.7#Destructuring_assignment"
>New_in_JavaScript_1.7#Destructuring_assignment">destructured assi> title="en/New_in_JavaScript_1.7#Destructuring_assignment">destru
>gnment</a> in JavaScript 1.7 to keep things clean.) The returned >ctured assignment</a> in JavaScript 1.7 to keep things clean.) Th
>functions act just like <code>PluralForm.get()</code> and <code>P>e returned functions act just like <code>PluralForm.get()</code> 
>luralForm.numForms()</code> except for the specified plural rule >and <code>PluralForm.numForms()</code> except for the specified p
>instead of the default plural rule.>lural rule instead of the default plural rule.

Back to History