Changes between Version 2 and Version 3 of i18n/GUI-Localization
- Timestamp:
- Oct 11, 2014, 4:18:55 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
i18n/GUI-Localization
v2 v3 17 17 The "''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. 18 18 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 21 19 Only 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. 22 20 23 21 The 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 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 {{{ 31 {0, plural, one{# new message} other{# new messages}} 32 }}} 33 You only translate the strings following the #, i.e. ''new message'' and ''new messages''. 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 {{{ 36 {0, plural, zero{# new message} one{# new message} few{# new messages} other{# new messages} } 37 }}}