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

Bug#237915: dpkg: Wrong use of gettext in main.c:printversion()



Package: dpkg
Version: 1.10.20
Severity: normal


In main.c:printversion():

  if (fputs(_( "This is free software; see the GNU General Public Licence version 2 or\n"
		"later for copying conditions.  There is NO warranty.\n"
		"See " DPKG " --licence for copyright and license details.\n"),
		 stdout) < 0) werr("stdout");

xgettext never knows what DPKG macro is to be after preprocessing.
but it extracts two wrong translatable strings (i guess it's an
xgettext bug):

#: main/main.c:48 main/query.c:438
msgid ""
"This is free software; see the GNU General Public Licence version 2 or\n"
"later for copying conditions.  There is NO warranty.\n"
"See "
msgstr ""

#: main/main.c:50 main/query.c:440
msgid " --licence for copyright and license details.\n"
msgstr ""


Then in runtime, it calls _( "This is free ... See dpkg --license ..."),
which is not translatable.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.3
Locale: LANG=ko_KR.UTF-8, LC_CTYPE=ko_KR.UTF-8

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

-- no debconf information



Reply to: