Package: pdbv
Version: 2.0.11-0.4
Severity: minor
Tags: patch l10n

The names of the months (as used in pdbv's sort-by-date view) are
hard-coded in pdbv.pot, and the fifth one is misspelled there:

 #: ../pdbv:1178
 msgid "Mai"
 msgstr ""

Looking in .po files I see that quite a few translations fail to
provide msgstrs for these msgids; and then there are the "fuzzy"
strings for "March", which include the renderings "Arch:" and
"Arquitectura"!  There's even a comment in it.po:

 # FIXME UPSTREAM: May

I could send you a patched pdbv.pot, but it shouldn't be hard-coded
there in the first place when LC_TIME can do all the work for us.
See attached patch; it's a bit of a kludge (I ought to work out
where that function gets called and fix things there), and it leaves
some spring cleaning to be done in the po directory, but It Works
For Me, and should also improve things for users of other locales.

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.28.custom
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pdbv depends on:
ii  coreutils [fileutils]         6.10-6     The GNU core utilities
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  liblocale-gettext-perl        1.05-4     Using libc functions for internati
ii  libtie-ixhash-perl            1.21-2     ordered associative arrays for Per
ii  perl-base                     5.10.0-19  minimal Perl system
ii  perl-modules                  5.10.0-19  Core Perl modules

Versions of packages pdbv recommends:
ii  popularity-contest            1.46       Vote for your favourite packages a
ii  procps                        1:3.2.7-11 /proc file system utilities

pdbv suggests no packages.

-- debconf information:
  pdbv/cron: hourly
* pdbv/clean_output_dir: true
  pdbv/force: false
  pdbv/listing: all
* pdbv/cron_lang:
  pdbv/light: false
* pdbv/output_dir: /var/www/pdbv

-- 
JBR
Ankh kak! (Ancient Egyptian blessing)
diff -ru pdbv-2.0.11.pristine/modules/xhtml.pl pdbv-2.0.11/modules/xhtml.pl
--- pdbv-2.0.11.pristine/modules/xhtml.pl	2005-02-23 10:42:20.000000000 +0000
+++ pdbv-2.0.11/modules/xhtml.pl	2009-06-22 16:27:49.000000000 +0100
@@ -436,32 +436,8 @@
 
 sub PdbvXhtmlMakeDate {
     my ($year, $month) = split(" ", $_[0]);
-    if ($month eq '01') {
-	$month = gettext("January");
-    } elsif ($month eq '02') {
-	$month = gettext("February");
-    } elsif ($month eq '03') {
-	$month = gettext("March");
-    } elsif ($month eq '04') {
-	$month = gettext("April");
-    } elsif ($month eq '05') {
-	$month = gettext("Mai");
-    } elsif ($month eq '06') {
-	$month = gettext("June");
-    } elsif ($month eq '07') {
-	$month = gettext("July");
-    } elsif ($month eq '08') {
-	$month = gettext("August");
-    } elsif ($month eq '09') {
-	$month = gettext("September");
-    } elsif ($month eq '10') {
-	$month = gettext("October");
-    } elsif ($month eq '11') {
-	$month = gettext("November");
-    } elsif ($month eq '12') {
-	$month = gettext("December");
-    } 
-    return $year.", ".$month;
+    $month =~ s/^0//; # not octal!
+    return strftime "$year, %B", 0, 0, 0, 0, $month, 0;
 }
 
 sub PdbvXhtmlMakeSize {

Reply via email to