summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rwxr-xr-xbootstrap15
-rw-r--r--bootstrap.conf3
-rw-r--r--po/POTFILES.in2
-rw-r--r--runtime-po/POTFILES.in1
5 files changed, 26 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index c0912fb5..478c6e40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2006-10-01 Paul Eggert <eggert@cs.ucla.edu>
+
+ Fix problems with translating English-language diagnostics.
+ * bootstrap: Fix bug introduced in recent bootstrap changes, with
+ respect to bison-runtime pot generation. The YY_ stuff
+ wasn't being captured.
+ * bootstrap.conf (XGETTEXT_OPTIONS_RUNTIME): New var.
+ * po/POTFILES.in: Add src/location.c, src/scan-code.l.
+ * runtime-po/POTFILES.in: Add data/push.c.
+
2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
Merge bootstrap changes from coreutils.
diff --git a/bootstrap b/bootstrap
index a9124017..d357ee46 100755
--- a/bootstrap
+++ b/bootstrap
@@ -443,13 +443,18 @@ sed '
' po/Makevars.template >po/Makevars
if test -d runtime-po; then
- # Likewise for runtime-po/Makevars, except also change a few other parameters.
+ # Similarly for runtime-po/Makevars, but not quite the same.
rm -f runtime-po/Makevars
sed '
- s/^\(DOMAIN\) *=.*/\1 = '"$package"'-runtime/
- s/^\(subdir\) *=.*/\1 = runtime-po/
- s/^\(XGETTEXT_OPTIONS\) *=.*/\1 = '"$XGETTEXT_OPTIONS_RUNTIME"'/
- ' <po/Makevars >runtime-po/Makevars
+ /^DOMAIN *=.*/s/=.*/= '"$package"'-runtime/
+ /^subdir *=.*/s/=.*/= runtime-po/
+ /^MSGID_BUGS_ADDRESS *=/s/=.*/= bug-'"$package"'@gnu.org/
+ /^XGETTEXT_OPTIONS *=/{
+ s/$/ \\/
+ a\
+ '"$XGETTEXT_OPTIONS_RUNTIME"' $${end_of_xgettext_options+}
+ }
+ ' <po/Makevars.template >runtime-po/Makevars
# Copy identical files from po to runtime-po.
(cd po && cp -p Makefile.in.in *-quot *.header *.sed *.sin ../runtime-po)
diff --git a/bootstrap.conf b/bootstrap.conf
index f4b02b1c..aff3c023 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -40,6 +40,9 @@ XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
--flag=warn:1:c-format --flag=warn_at:2:c-format\\\
--flag=unexpected_end:2:c-format\\\
'
+XGETTEXT_OPTIONS_RUNTIME=$XGETTEXT_OPTIONS'\\\
+ --keyword=YY_ \\\
+'
# Gettext supplies these files, but we don't need them since
# we don't have an intl subdirectory.
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 52f9d488..d39ca4c7 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -3,11 +3,13 @@ src/conflicts.c
src/files.c
src/getargs.c
src/gram.c
+src/location.c
src/main.c
src/parse-gram.y
src/print.c
src/reader.c
src/reduce.c
+src/scan-code.l
src/scan-gram.l
src/symlist.c
src/symtab.c
diff --git a/runtime-po/POTFILES.in b/runtime-po/POTFILES.in
index 7e730633..745d2c1a 100644
--- a/runtime-po/POTFILES.in
+++ b/runtime-po/POTFILES.in
@@ -1,3 +1,4 @@
data/glr.c
data/lalr1.cc
+data/push.c
data/yacc.c