Changes between Version 5 and Version 6 of i18n/GUI-Localization
- Timestamp:
- Oct 11, 2014, 4:58:55 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified i18n/GUI-Localization
v5 v6 29 29 Some languages use more specific plural forms than English, for example special plural forms for 2 or 3 to 5 items. To account for that you may find strings to translate like: 30 30 {{{ 31 {0, plural, one{ # new message} other{# new messages}}31 {0, plural, one{There is # new message} other{There are # new messages}} 32 32 }}} 33 You only translate the strings following the #, i.e. ''new message'' and ''new messages''.33 You only translate the strings in the deepest level of braces, i.e. ''# new message'' and ''# new messages''. Te # is replaced by a number. 34 34 If your target language has additional plural forms, you can add additional rules besides ''one'' and ''other'', see [http://cldr.unicode.org/index/cldr-spec/plural-rules the spec] and this [http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html language table]. For example: 35 35 {{{ 36 {0, plural, zero{ # new message} one{# new message} few{# new messages} other{# new messages}}36 {0, plural, zero{There are no new messages} one{There is # new message} few{There are # new messages} other{There are # new messages}} 37 37 }}}