Re: Localization and plural rules revisited
Re: Localization and plural rules revisited
- Subject: Re: Localization and plural rules revisited
- From: Ricky Sharp <email@hidden>
- Date: Tue, 20 May 2008 17:04:11 -0500
On May 20, 2008, at 3:40 PM, Gary L. Wade wrote:
On May 20, 2008, at 12:08 PM, Peter Edberg wrote:
CLDR (Common Locale Data Repository) has some draft data on plural
forms for various languages. See
<http://unicode.org/cldr/data/charts/supplemental/language_plural_rules.html
for specific rules
and
<http://unicode.org/draft/reports/tr35/
tr35.html#Language_Plural_Rules> for background info.
These are by far the best references I've seen to date. Thanks!
Very
interesting that Ukrainian has a special rule for fractional values
vs. integers.
Well, keep in mind that English also has a "special rule" for
fractions if they're written in textual form: "half an apple" vs.
"0.5 apples". If you REALLY want to get localized, look at the
ability to write out textual forms of numbers within ICU.
http://icu.sourceforge.net/apiref/icu4c/
classRuleBasedNumberFormat.html
Thanks for this additional info. However, there's only a single spot
in my app where I use spelled-out numbers. And, such phrases do not
need to work with plural forms as they represent simple word
problems. For example:
One plus eight equals what number?
No units (nouns) are included.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden