#10755: Plural forms support in Locale Kit -------------------------------+---------------------------- Reporter: KapiX | Owner: pulkomandy Type: enhancement | Status: new Priority: normal | Milestone: R1 Component: Kits/Locale Kit | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All -------------------------------+---------------------------- Comment (by pulkomandy): ICU manages this: * http://www.icu-project.org/apiref/icu4c/classicu_1_1MessageFormat.html * http://www.icu-project.org/apiref/icu4c/classicu_1_1PluralFormat.html They use a pattern system which allows to "fold" all the rules into a string: {{{ UnicodeString msgPatEn = "{0,plural, one{# dog} other{# dogs}}"; UnicodeString msgPatSl = "{0,plural, one{# pes} two{# psa} few{# psi} other{# psov}}"; }}} the # is replaced with the value. The rules are defined by KapiX second link for all languages. Polish uses "one", "few", "many", and "other". Does that format sound right for translators? -- Ticket URL: <https://dev.haiku-os.org/ticket/10755#comment:5> Haiku <https://dev.haiku-os.org> Haiku - the operating system.