]> git.ipfire.org Git - thirdparty/gettext.git/commit
msginit: Guess plural rules from Unicode CLDR
authorDaiki Ueno <ueno@gnu.org>
Thu, 21 May 2015 04:03:50 +0000 (13:03 +0900)
committerDaiki Ueno <ueno@gnu.org>
Mon, 22 Jun 2015 09:21:59 +0000 (18:21 +0900)
commit183e7920f79e4ed7f4df9c789c59504a09a7ff80
tree07747278df8366ad39dcd15f930b3be26edacb0f
parentec8a9e0537ce7449acb0eb100d0bb7dffbd8aa0a
msginit: Guess plural rules from Unicode CLDR

* gettext-tools/src/Makefile.am (noinst_PROGRAMS): Add cldr-plurals.
(install-exec-local): Install cldr-plurals.
(BUILT_SOURCES): Add cldr-plural.c and cldr-plural.h.
(cldr_plural_SOURCES): New variable.
(cldr_plural_LDADD): New variable.
* gettext-tools/src/cldr-plural-exp.h: New file.
* gettext-tools/src/cldr-plural-exp.c: New file.
* gettext-tools/src/cldr-plural.y: New file.
* gettext-tools/src/cldr-plurals.c: New file.
* gettext-tools/src/msginit.c (plural_forms): Call cldr-plurals program
if the plural rule is not defined in the code.
* gettext-tools/doc/msginit.texi: More explanations about "meta
information".
* gettext-tools/doc/gettext.texi (Plural forms): Mention Unicode CLDR
support in msginit.
* gettext-tools/tests/cldr-plurals-1: New file.
* gettext-tools/tests/Makefile.am (TESTS): Add new tests.
* NEWS: Mention msginit change.
15 files changed:
ChangeLog
NEWS
gettext-tools/doc/ChangeLog
gettext-tools/doc/gettext.texi
gettext-tools/doc/msginit.texi
gettext-tools/src/ChangeLog
gettext-tools/src/Makefile.am
gettext-tools/src/cldr-plural-exp.c [new file with mode: 0644]
gettext-tools/src/cldr-plural-exp.h [new file with mode: 0644]
gettext-tools/src/cldr-plural.y [new file with mode: 0644]
gettext-tools/src/cldr-plurals.c [new file with mode: 0644]
gettext-tools/src/msginit.c
gettext-tools/tests/ChangeLog
gettext-tools/tests/Makefile.am
gettext-tools/tests/cldr-plurals-1 [new file with mode: 0755]