Re: dpkg NLS language selection (patch included)
On Sat, 2009-11-21 at 04:27:38 -0600, Yuri Vasilevski wrote:
> As pointed out by guillem in:
> Gentoo has an obsolete patch for nls support.
> I changed that patch so now users can configure LINGUAS environment
> variable to choose which locals and translations to install.
> This is common practice in Gentoo so that users can select which
> locales they want installed by the many ebuilds that support this
> feature respect.
Right, and it's already supported for the rest of the translations by
way of configure.
> The patch for this is fairly trivial and I hope will get accepted :-)
> diff -Naurp dpkg-126.96.36.199.orig/man/Makefile.am dpkg-188.8.131.52/man/Makefile.am
> --- dpkg-184.108.40.206.orig/man/Makefile.am 2009-11-18 07:28:44.000000000 +0000
> +++ dpkg-220.127.116.11/man/Makefile.am 2009-11-21 07:14:37.000000000 +0000
> @@ -36,7 +36,7 @@ update-po:
> $(PO4A) $(PO4A_BUILD_OPTS) --force po/po4a.cfg
> # Extract the list of languages from the po4a config file.
> -LINGUAS = `sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg`
> +LINGUAS := `sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg`
> install-data-local: install-data-local-@USE_PO4A@
Although I don't see how this could work, as the environment variables
is not going to be able to override either assignment type.
I've used ?= instead, and taken care of not changing behaviour on
This is being uploaded as dpkg 1.15.6, but targetting the Debian
experimental suite, so you might want to wait until it hits unstable