Changes between Version 2 and Version 3 of i18n/GUI-Localization


Ignore:
Timestamp:
Oct 11, 2014, 4:18:55 PM (10 years ago)
Author:
humdinger
Comment:

Added info to plural forms

Legend:

Unmodified
Added
Removed
Modified
  • i18n/GUI-Localization

    v2 v3  
    1717The "''Context: MultiAudio''" shows from what section in the source code the particular string comes from. Sometimes, you'll get an additional commentary to that string, explaining the context the string appears in.
    1818
    19 '''Don't translate variables''' like "''%s''" or "''%something%''"! Those variables are translated in-code. If you change those, the code won't find them anymore and you'll have your translated variable in there, %-characters included...
    20 
    2119Only language managers have the permissions to actually use the "''Submit''" button to accept a localized string. Everyone else has to use the "''Suggest''" button, which tells the language manager that there's work for him.
    2220
    2321The accepted strings are regularly updated with Haiku's master repository (currently once a week), and are included in the nightly builds.
     22
     23== Variables ==
     24
     25'''Don't translate variables''' like "''%s''" or "''%something%''"! Those variables are translated in-code. If you change those, the code won't find them anymore and you'll have your translated variable in there, %-characters included...
     26
     27== Plural forms ==
     28
     29Some 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{{{
     31{0, plural, one{# new message} other{# new messages}}
     32}}}
     33You only translate the strings following the #, i.e. ''new message'' and ''new messages''.
     34If 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{{{
     36{0, plural, zero{# new message} one{# new message} few{# new messages} other{# new messages} }
     37}}}