bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gettext] Plural rule definitions


From: Daiki Ueno
Subject: Re: [bug-gettext] Plural rule definitions
Date: Wed, 20 May 2015 14:11:17 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Michele Locati <address@hidden> writes:

> But we have a problem here: CLDR data defines the plural rules for
> integers and for floats.  gettext only works with unsigned integers.
[...]
> That's why I created
> https://github.com/mlocati/cldr-to-gettext-plural-rules

Yes, I actually tried your tool before and read how it works out the
issue.  It looks reasonable to me that it prunes conditionals which
always evaluate to true/false.

> IMHO it can be used to statically generate the rules for all the
> languages (simply call "bin/export.sh gettext"), so that they can be
> included statically in gettext (making the "urlget" approach useless).

That's true if we can assume that gettext always includes the latest or
fixed information.  However, CLDR changes over time, and a user could
stick with an older gettext version which ships with a plural-table.c
generated from an older CLDR release.

> The approach that I proposed was meant to help programs like poedit.
> Having a standardized/structured way to represent plural forms (with a
> representative name like "one"/"few"/"many" and some example) can be
> helpful in such cases...

That makes sense.

Regards,
-- 
Daiki Ueno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]