# Work around bugs in translations uncovered by gettext 0.15.
# This workaround can be removed once the translations are fixed.
- if (lang == "hu" || lang == "ky" || lang == "zh_TW") next
+ if (lang == "hu" || lang == "zh_TW") next
ver = $2
urlfmt = ""
m4/glibc2.m4
m4/intdiv0.m4
m4/intmax.m4
- m4/inttypes-h.m4
- m4/inttypes-pri.m4
m4/lcmessage.m4
m4/lock.m4
m4/printf-posix.m4
# Undo changes to gnulib files that autoreconf made.
+
for gnulib_file in $gnulib_files; do
test ! -f $gnulib_file || cmp -s $gnulib_file $GNULIB_SRCDIR/$gnulib_file || {
rm -f $gnulib_file &&
done
-# Put bug-reporting address into po/Makevars.
-echo "$0: sed '/^MSGID_BUGS_ADDRESS *=/s/=.*/= bug-$package@gnu.org/' po/Makevars.template >po/Makevars ..."
-sed '/^MSGID_BUGS_ADDRESS *=/s/=.*/= bug-'"$package"'@gnu.org/' po/Makevars.template >po/Makevars
-
+# Create gettext configuration.
+echo "$0: Creating po/Makevars from po/Makevars.template ..."
+sed '
+ /^MSGID_BUGS_ADDRESS *=/s/=.*/= bug-'"$package"'@gnu.org/
+ /^XGETTEXT_OPTIONS *=/{
+ s/$/ \\/
+ a\
+ --flag=_:1:pass-c-format \\\
+ --flag=N_:1:pass-c-format \\\
+ --flag=error:3:c-format --flag=error_at_line:5:c-format \\\
+ --flag=asnprintf:3:c-format --flag=vasnprintf:3:c-format \\\
+ --flag=argp_error:2:c-format \\\
+ --flag=__argp_error:2:c-format \\\
+ --flag=argp_failure:4:c-format \\\
+ --flag=__argp_failure:4:c-format \\\
+ --flag=argp_fmtstream_printf:2:c-format \\\
+ --flag=__argp_fmtstream_printf:2:c-format
+ }
+' po/Makevars.template >po/Makevars
echo "$0: done. Now you can run './configure'."