Use new approach for gnulib localizations.

* gettext-runtime/po/POTFILES.in: Remove files that come from gnulib.
* gettext-tools/po/POTFILES.in: Likewise.
* gettext-runtime/src/envsubst.c (main): Invoke bindtextdomain for the domain
'gnulib'.
* gettext-runtime/src/gettext.c (main): Likewise.
* gettext-runtime/src/ngettext.c (main): Likewise.
* gettext-tools/src/cldr-plurals.c (main): Likewise.
* gettext-tools/src/hostname.c (main): Likewise.
* gettext-tools/src/msgattrib.c (main): Likewise.
* gettext-tools/src/msgcat.c (main): Likewise.
* gettext-tools/src/msgcmp.c (main): Likewise.
* gettext-tools/src/msgcomm.c (main): Likewise.
* gettext-tools/src/msgconv.c (main): Likewise.
* gettext-tools/src/msgen.c (main): Likewise.
* gettext-tools/src/msgexec.c (main): Likewise.
* gettext-tools/src/msgfilter.c (main): Likewise.
* gettext-tools/src/msgfmt.c (main): Likewise.
* gettext-tools/src/msggrep.c (main): Likewise.
* gettext-tools/src/msginit.c (main): Likewise.
* gettext-tools/src/msgmerge.c (main): Likewise.
* gettext-tools/src/msgunfmt.c (main): Likewise.
* gettext-tools/src/msguniq.c (main): Likewise.
* gettext-tools/src/recode-sr-latin.c (main): Likewise.
* gettext-tools/src/urlget.c (main): Likewise.
* gettext-tools/src/xgettext.c (main): Likewise.
This commit is contained in:
Bruno Haible 2024-12-09 04:59:35 +01:00
parent 10901e63cf
commit adce2d596f
24 changed files with 25 additions and 38 deletions

View File

@ -1,15 +1,9 @@
# List of files which contain translatable strings.
# Copyright (C) 1995, 1998, 2001-2003, 2005-2006, 2023 Free Software Foundation, Inc.
# Copyright (C) 1995-2024 Free Software Foundation, Inc.
# This file is free software, distributed under GNU GPL v3+.
# For updating this file, look at the result of:
# $ LC_ALL=C grep -l '[^A-Za-z_]_(' {gnulib-lib,src}/*.[chly]
# Files from the portability library
gnulib-lib/closeout.c
gnulib-lib/error.c
gnulib-lib/getopt.c
gnulib-lib/xalloc-die.c
# $ LC_ALL=C grep -l '[^A-Za-z_]_(' src/*.[chly]
# Package source files
src/envsubst.c

View File

@ -79,6 +79,7 @@ main (int argc, char *argv[])
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
textdomain (PACKAGE);
/* Ensure that write errors on stdout are detected. */

View File

@ -86,6 +86,7 @@ main (int argc, char *argv[])
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
textdomain (PACKAGE);
/* Ensure that write errors on stdout are detected. */

View File

@ -82,6 +82,7 @@ main (int argc, char *argv[])
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
textdomain (PACKAGE);
/* Ensure that write errors on stdout are detected. */

View File

@ -3,33 +3,7 @@
# This file is free software, distributed under GNU GPL v3+.
# For updating this file, look at the result of:
# $ LC_ALL=C grep -l '[^A-Za-z_]_(' {gnulib-lib,src,libgettextpo}/*.[chly]
# Files from the portability library
gnulib-lib/argmatch.c
gnulib-lib/clean-temp.c
gnulib-lib/clean-temp-simple.c
gnulib-lib/closeout.c
gnulib-lib/copy-file.c
gnulib-lib/csharpcomp.c
gnulib-lib/csharpexec.c
gnulib-lib/error.c
gnulib-lib/execute.c
gnulib-lib/gai_strerror.c
gnulib-lib/getaddrinfo.c
gnulib-lib/getopt.c
gnulib-lib/javacomp.c
gnulib-lib/javaexec.c
gnulib-lib/javaversion.c
gnulib-lib/obstack.c
gnulib-lib/openat-die.c
gnulib-lib/os2-spawn.c
gnulib-lib/pipe-filter-ii.c
gnulib-lib/quotearg.c
gnulib-lib/spawn-pipe.c
gnulib-lib/wait-process.c
gnulib-lib/xalloc-die.c
gnulib-lib/xsetenv.c
# $ LC_ALL=C grep -l '[^A-Za-z_]_(' {src,libgettextpo}/*.[chly]
# Package source files
src/cldr-plurals.c
@ -143,8 +117,5 @@ src/x-tcl.c
src/x-vala.c
src/x-ycp.c
src/user-email.sh.in
libgettextpo/error.c
libgettextpo/gettext-po.c
libgettextpo/markup.c
libgettextpo/obstack.c
libgettextpo/xalloc-die.c

View File

@ -236,6 +236,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -145,6 +145,7 @@ main (int argc, char *argv[])
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
textdomain (PACKAGE);
/* Ensure that write errors on stdout are detected. */

View File

@ -161,6 +161,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -129,6 +129,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -106,6 +106,7 @@ main (int argc, char *argv[])
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -128,6 +128,7 @@ main (int argc, char *argv[])
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -117,6 +117,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -119,6 +119,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -117,6 +117,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -151,6 +151,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -267,6 +267,7 @@ main (int argc, char *argv[])
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -164,6 +164,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -158,6 +158,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -205,6 +205,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -132,6 +132,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -121,6 +121,7 @@ main (int argc, char **argv)
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);

View File

@ -76,6 +76,7 @@ main (int argc, char *argv[])
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
textdomain (PACKAGE);
/* Ensure that write errors on stdout are detected. */

View File

@ -101,6 +101,7 @@ main (int argc, char *argv[])
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
textdomain (PACKAGE);
/* Ensure that write errors on stdout are detected. */

View File

@ -359,6 +359,7 @@ main (int argc, char *argv[])
/* Set the text message domain. */
bindtextdomain (PACKAGE, relocate (LOCALEDIR));
bindtextdomain ("gnulib", relocate (GNULIB_LOCALEDIR));
bindtextdomain ("bison-runtime", relocate (BISON_LOCALEDIR));
textdomain (PACKAGE);