Use the translation domain "gnulib"

2024-12-08 Thread Bruno Haible via Gnulib discussion list
This patch makes the gnulib source code use the translation domain "gnulib", instead of the translation domain of the package that imports gnulib modules. This patch also makes it clear that the approach documented in 2008 never actually worked: All _() calls used gettext (msgid) not dgettex

Document the new approach for gnulib localization

2024-12-08 Thread Bruno Haible via Gnulib discussion list
And this patch finally documents approach (a) from . 2024-12-08 Bruno Haible Document the new approach for gnulib localization. * doc/gnulib-tool.texi (Localization): Recommend to use the gnulib-l10n

gnulib-i18n: New module

2024-12-08 Thread Bruno Haible via Gnulib discussion list
This patch adds a module that defines GNULIB_LOCALEDIR. So that a user can e.g. configure with options --prefix=$HOME --with-gnulib-prefix=/usr 2024-12-08 Bruno Haible gnulib-i18n: New module. * m4/gnulib-i18n.m4: New file, based on m4/bison-i18n.m4. * modules/gnulib

Add infrastructure for handling gnulib localizations

2024-12-08 Thread Bruno Haible via Gnulib discussion list
This patch adds two Makefile targets to gnulib's main Makefile: - A target for creating a tarball that can be handed to the TP's translation coordinator. - A target for creating a tarball that contains the localization of the "gnulib" domain. 2024-12-08 Bruno Haible Add in

bison-i18n: Improve usability

2024-12-08 Thread Bruno Haible via Gnulib discussion list
This patch does two improvements to the 'bison-i18n' module: - Removes the dependency to 'gettext', since that is a heavy-weight module. - Allows users to remove the option from the AM_CPPFLAGS: -DBISON_LOCALEDIR=$(BISON_LOCALEDIR_c_make) 2024-12-08 Bruno Haible bison-i18n:

Update dependencies of modules that include "gettext.h"

2024-12-08 Thread Bruno Haible via Gnulib discussion list
A module that includes "gettext.h" needs to depend on 'gettext-h'. Some of these dependencies have been forgotten. 2024-12-08 Bruno Haible Update dependencies of modules that include "gettext.h". * modules/closein (Depends-on): Add gettext-h. * modules/dfa (Depends-on)

Re: gnulib localizations

2024-12-08 Thread Bruno Haible via Gnulib discussion list
Hi Gavin, > If possible, gnulib translations should be made without much adaptation > by the developers of the package using gnulib. Yup. That's what was the main mistake in the approach (b) from 2008. > The main requirement > for developers is to add the bindtextdomain call with the directory >