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

dpkg NLS language selection (patch included)



Hello,

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.

The patch for this is fairly trivial and I hope will get accepted :-)

Kindest regards,
Yuri.

PS: Please CC me on replay as I'm not subscribed to this list.
diff -Naurp dpkg-1.15.5.2.orig/man/Makefile.am dpkg-1.15.5.2/man/Makefile.am
--- dpkg-1.15.5.2.orig/man/Makefile.am	2009-11-18 07:28:44.000000000 +0000
+++ dpkg-1.15.5.2/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@
 

Reply to: