[haiku-bugs] Re: [Haiku] #10755: Plural forms support in Locale Kit

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Mon, 14 Apr 2014 14:05:45 -0000

#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):

 You don't need the %n, the "0" is the identifier for each number in the
 message.
 So "10 files in 3 folders" would be (for english):
 {{{
  "{fileCount, plural, one{# file} other{# files}} in {folderCount, plural,
 one{# folder} other {# folders}}"
 }}}

 Then this can be replaced with the rules for each translation. Of course
 it seems a good idea to have a "comment" with the expected rendering of
 the string in english, to help people understand what to do with this.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10755#comment:8>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: