Bug#165843: Please localize perl programs as well.
Package: dpkg
Version: 1.10.9
Severity: wishlist
Please localize dpkg-checkbuilddeps et al.
dpkg has localized C programs, but no perl code seems to be localized
The following is a demonstration of how it can be done, localizing
dpkg-checkbuilddeps.
diff -ru --exclude '*.po' --exclude '*.pot' dpkg-1.10.9/po/POTFILES.in dpkg-1.10.9-scripts-localized/po/POTFILES.in
--- dpkg-1.10.9/po/POTFILES.in 2001-09-12 23:58:13.000000000 +0900
+++ dpkg-1.10.9-scripts-localized/po/POTFILES.in 2002-10-22 13:17:23.000000000 +0900
@@ -61,3 +61,5 @@
dselect/pkgtop.cc
dselect/helpmsgs.cc
+
+scripts/dpkg-checkbuilddeps.pl
\ No newline at end of file
Only in dpkg-1.10.9-scripts-localized/po: POTFILES.in~
Only in dpkg-1.10.9-scripts-localized/po: ja.po~
Only in dpkg-1.10.9-scripts-localized/scripts: Makefile
Only in dpkg-1.10.9/scripts: dpkg-architecture.1
diff -ru --exclude '*.po' --exclude '*.pot' dpkg-1.10.9/scripts/dpkg-checkbuilddeps.pl dpkg-1.10.9-scripts-localized/scripts/dpkg-checkbuilddeps.pl
--- dpkg-1.10.9/scripts/dpkg-checkbuilddeps.pl 2002-07-02 16:47:47.000000000 +0900
+++ dpkg-1.10.9-scripts-localized/scripts/dpkg-checkbuilddeps.pl 2002-10-22 13:27:52.000000000 +0900
@@ -3,6 +3,11 @@
use strict;
use Getopt::Long;
+use POSIX;
+use Locale::gettext;
+
+setlocale (LC_ALL, "");
+textdomain ("dpkg");
sub usage {
print STDERR <<EOF;
@@ -50,11 +55,11 @@
}
if (@unmet) {
- print STDERR "$me: Unmet build dependencies: ";
+ print STDERR "$me: ". gettext("Unmet build dependencies: ");
print STDERR join(" ", @unmet), "\n";
}
if (@conflicts) {
- print STDERR "$me: Build conflicts: ";
+ print STDERR "$me: " . gettext("Build conflicts: ");
print STDERR join(" ", @conflicts), "\n";
}
exit 1 if @unmet || @conflicts;
--
dancer@debian.org http://www.netfort.gr.jp/~dancer
Reply to: