[Debconf-devel] Bug#232044: debconf: messages not translated with
non-UTF8 locales
Nicolas François
nicolas.francois at centraliens.net
Sat Oct 28 17:22:41 BST 2006
tags 232044 patch
thanks
Hello,
A similar bug was filled against po-debconf (#395377).
I came to the attached patch.
With this patch, the messages are translated, even if LC_ALL=fr_FR and the
template only contains -fr.UTF-8 translations.
Kind Regards,
--
Nekral
-------------- next part --------------
diff -rauN ../orig/debconf-1.5.6/Debconf/Template.pm ./debconf-1.5.6/Debconf/Template.pm
--- ../orig/debconf-1.5.6/Debconf/Template.pm 2006-09-13 19:34:00.000000000 +0200
+++ ./debconf-1.5.6/Debconf/Template.pm 2006-10-28 18:06:29.000000000 +0200
@@ -448,7 +448,7 @@
# Failing that, look for a field that matches
# the language, and do charset conversion.
if ($Debconf::Encoding::charmap) {
- foreach my $f (@fields) {
+ foreach my $f ($Debconf::Db::templates->fields($this->{template})) {
if ($f =~ /^\Q$field-$lang\E\.(.+)/) {
my $encoding = $1;
$ret = Debconf::Encoding::convert($encoding, $Debconf::Db::templates->getfield($this->{template}, lc($f)));
More information about the Debconf-devel
mailing list