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

Bug#238505: lib/dump.c:279: writedb: words "available" and "status" are not translatable



Package: dpkg
Version: 1.10.19
Severity: minor

Function writedb() contains a local variable `which' having
one of two possible values: "available" or "status". This
variable is used in gettextized strings later in the function.
But `which' itself is not gettextized that produce ugly
translations. I think the attached patch should be applied.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.4
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R

Versions of packages dpkg depends on:
ii  dselect                     1.10.19      a user tool to manage Debian packa
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an

-- no debconf information

--- dump.old	2003-10-26 00:03:20.000000000 +0400
+++ dump.c	2004-03-17 14:31:47.000000000 +0300
@@ -276,7 +276,7 @@
   struct varbuf vb;
   int old_umask;
 
-  which= available ? "available" : "status";
+  which= available ? _("available") : _("status");
   oldfn= m_malloc(strlen(filename)+sizeof(OLDDBEXT));
   strcpy(oldfn,filename); strcat(oldfn,OLDDBEXT);
   newfn= m_malloc(strlen(filename)+sizeof(NEWDBEXT));

Reply to: