[haiku-commits] Re: haiku: hrev47971 - in src: tests/kits/locale servers/mail kits/tracker add-ons/mail_daemon/inbound_filters/notifier kits/locale

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 07 Oct 2014 10:31:10 +0200

Am 07.10.2014 10:05, schrieb pulkomandy@xxxxxxxxxxxxx:
+       static const char* polishTemplate = "{0, plural, one{Wybrano # obiekt} "
+               "few{Wybrano # obiekty} many{Wybrano # obiektów} "
+               "other{Wybrano # obyektu}}";

Is one/many/few/other really fixed in all languages/contexts?
Would it be possible to use a (maybe optional) less wordy/expressive notation?

Java's MessageFormat uses just the numbers which I actually like better, as it's more clear and flexible than "one" and "other", plus it allows for things like writing the numbers out for lower amounts (as it's typically done in German, at least in texts).
Maybe support both?

In Java it would be something like:
{0,choice,0#cars,1#car,2#cars}
{0,choice,0#no cars,1#one car,2#{0} cars}
Or even:
{0,choice,0#red,1#blue,2#green,3#yellow}

Of course, it would be nice be able to remove that duplicated value.

Bye,
   Axel.

Other related posts: