From: Bruno Haible Date: Wed, 21 Sep 2005 20:28:59 +0000 (+0000) Subject: Use an internationalized bison parser. X-Git-Tag: v0.15~391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=391af6a5faa28626de530884d621b8661975efe1;p=thirdparty%2Fgettext.git Use an internationalized bison parser. --- diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog index f4bb3e183..c1e605b39 100644 --- a/gettext-tools/ChangeLog +++ b/gettext-tools/ChangeLog @@ -1,3 +1,7 @@ +2005-09-20 Bruno Haible + + * configure.ac: Invoke BISON_I18N. + 2005-08-23 Bruno Haible * configure.ac: Invoke gl_BYTESWAP. Define ENDIANNESS. diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index eb40a0858..6d734d91d 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -110,6 +110,9 @@ dnl These are the only lines required to internationalize the package. dnl (OK, not quite, the AC_CONFIG_FILES has also some parts.) AM_GNU_GETTEXT(use-libtool, need-ngettext) +dnl This line internationalizes the bison generated parsers. +BISON_I18N + dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(limits.h malloc.h pwd.h string.h unistd.h utime.h values.h) diff --git a/gettext-tools/m4/ChangeLog b/gettext-tools/m4/ChangeLog index 70adc3073..e9282f34e 100644 --- a/gettext-tools/m4/ChangeLog +++ b/gettext-tools/m4/ChangeLog @@ -1,3 +1,8 @@ +2005-09-20 Bruno Haible + + * bison-i18n.m4: New file, from bison-2.1. + * Makefile.am (EXTRA_DIST): Add it. + 2005-08-23 Bruno Haible * byteswap.m4: New file, from gnulib. diff --git a/gettext-tools/m4/Makefile.am b/gettext-tools/m4/Makefile.am index 60286be4b..2505638fb 100644 --- a/gettext-tools/m4/Makefile.am +++ b/gettext-tools/m4/Makefile.am @@ -50,6 +50,7 @@ EXTRA_DIST = README ChangeLog.0 csharpexec-test.exe \ alloca.m4 \ allocsa.m4 \ backupfile.m4 \ +bison-i18n.m4 \ byteswap.m4 \ canonicalize.m4 \ csharp.m4 \ diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 3a0f1937b..e372f99d0 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,21 @@ +2005-09-20 Bruno Haible + + * msgattrib.c (main): Invoke bindtextdomain for bison-runtime. + * msgcat.c (main): Likewise. + * msgcmp.c (main): Likewise. + * msgcomm.c (main): Likewise. + * msgconv.c (main): Likewise. + * msgen.c (main): Likewise. + * msgexec.c (main): Likewise. + * msgfilter.c (main): Likewise. + * msggrep.c (main): Likewise. + * msginit.c (main): Likewise. + * msgmerge.c (main): Likewise. + * msgunfmt.c (main): Likewise. + * msguniq.c (main): Likewise. + * xgettext.c (main): Likewise. + * Makefile.am (DEFS): Also define BISON_LOCALEDIR. + 2005-09-17 Bruno Haible * msgl-check.h: New file. diff --git a/gettext-tools/src/Makefile.am b/gettext-tools/src/Makefile.am index 375469dea..421044fe9 100644 --- a/gettext-tools/src/Makefile.am +++ b/gettext-tools/src/Makefile.am @@ -70,7 +70,7 @@ AM_CPPFLAGS = \ -I../lib -I$(top_srcdir)/lib \ -I../intl -I$(top_srcdir)/../gettext-runtime/intl DEFS = \ - -DLOCALEDIR=\"$(localedir)\" \ + -DLOCALEDIR=\"$(localedir)\" -DBISON_LOCALEDIR=\"$(BISON_LOCALEDIR)\" \ -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ -DUSEJEXE=$(USEJEXE) \ -DGETTEXTJEXEDIR=\"$(pkglibdir)\" \ diff --git a/gettext-tools/src/msgattrib.c b/gettext-tools/src/msgattrib.c index 14c7cf5bf..c83e714da 100644 --- a/gettext-tools/src/msgattrib.c +++ b/gettext-tools/src/msgattrib.c @@ -146,6 +146,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msgcat.c b/gettext-tools/src/msgcat.c index 01b05ce98..f9123ea1a 100644 --- a/gettext-tools/src/msgcat.c +++ b/gettext-tools/src/msgcat.c @@ -118,6 +118,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msgcmp.c b/gettext-tools/src/msgcmp.c index 6f0962c15..f86ae23ae 100644 --- a/gettext-tools/src/msgcmp.c +++ b/gettext-tools/src/msgcmp.c @@ -89,6 +89,7 @@ main (int argc, char *argv[]) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msgcomm.c b/gettext-tools/src/msgcomm.c index 594d0bb54..41d67eaf1 100644 --- a/gettext-tools/src/msgcomm.c +++ b/gettext-tools/src/msgcomm.c @@ -120,6 +120,7 @@ main (int argc, char *argv[]) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msgconv.c b/gettext-tools/src/msgconv.c index 8f9f57270..62b79ae2e 100644 --- a/gettext-tools/src/msgconv.c +++ b/gettext-tools/src/msgconv.c @@ -110,6 +110,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msgen.c b/gettext-tools/src/msgen.c index dfabebc5a..e92810814 100644 --- a/gettext-tools/src/msgen.c +++ b/gettext-tools/src/msgen.c @@ -103,6 +103,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msgexec.c b/gettext-tools/src/msgexec.c index db7f05edf..2090718a8 100644 --- a/gettext-tools/src/msgexec.c +++ b/gettext-tools/src/msgexec.c @@ -116,6 +116,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msgfilter.c b/gettext-tools/src/msgfilter.c index ceba300e9..f5a0a9267 100644 --- a/gettext-tools/src/msgfilter.c +++ b/gettext-tools/src/msgfilter.c @@ -157,6 +157,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msgfmt.c b/gettext-tools/src/msgfmt.c index d9d315233..cc88ed662 100644 --- a/gettext-tools/src/msgfmt.c +++ b/gettext-tools/src/msgfmt.c @@ -216,6 +216,7 @@ main (int argc, char *argv[]) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msggrep.c b/gettext-tools/src/msggrep.c index 8af04ac20..aa639049f 100644 --- a/gettext-tools/src/msggrep.c +++ b/gettext-tools/src/msggrep.c @@ -155,6 +155,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msginit.c b/gettext-tools/src/msginit.c index 5bb60bf4f..2856ba889 100644 --- a/gettext-tools/src/msginit.c +++ b/gettext-tools/src/msginit.c @@ -177,6 +177,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msgmerge.c b/gettext-tools/src/msgmerge.c index 0e45221a8..e325bcdd1 100644 --- a/gettext-tools/src/msgmerge.c +++ b/gettext-tools/src/msgmerge.c @@ -164,6 +164,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msgunfmt.c b/gettext-tools/src/msgunfmt.c index 178de694f..cb9a1e336 100644 --- a/gettext-tools/src/msgunfmt.c +++ b/gettext-tools/src/msgunfmt.c @@ -129,6 +129,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/msguniq.c b/gettext-tools/src/msguniq.c index 044581e5e..475f39e29 100644 --- a/gettext-tools/src/msguniq.c +++ b/gettext-tools/src/msguniq.c @@ -113,6 +113,7 @@ main (int argc, char **argv) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */ diff --git a/gettext-tools/src/xgettext.c b/gettext-tools/src/xgettext.c index 260577f3a..8bfa8b162 100644 --- a/gettext-tools/src/xgettext.c +++ b/gettext-tools/src/xgettext.c @@ -285,6 +285,7 @@ main (int argc, char *argv[]) /* Set the text message domain. */ bindtextdomain (PACKAGE, relocate (LOCALEDIR)); + bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR)); textdomain (PACKAGE); /* Ensure that write errors on stdout are detected. */