[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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:
> http://lists.debian.org/debian-dpkg/2009/11/msg00071.html
> 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- dpkg-
> --- dpkg-	2009-11-18 07:28:44.000000000 +0000
> +++ dpkg-	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
“make dist”.


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


Reply to: