Bug#674045: [Aptitude-devel] Bug#674045: aptitude: German translation says #Broken but shows no number

2012-05-23 Thread Christian PERRIER
Quoting Andreas Kloeckner (inf...@tiker.net):
 Package: aptitude
 Version: 0.6.7-1
 Severity: normal
 Tags: l10n
 
 Dear Maintainer,
 
 The German translation of aptitude, when encountering broken packages,
 shows (the German equivalent of) #Broken in the header, but does not
 show a number behind this label.


I confirm this. The German translation is indeed right:

#: src/pkg_columnizer.cc:394
#, c-format
msgid #Broken: %ld
msgstr #Beschädigt: %ld


I suspect this is because the string is longer than the original
English string and is overwritten by the next string.
The problem doesn't happen in Franch because the translation there
(#Cassé: %ld) is not longer than the English string.

So, unless come code is added to consider the real size of strings
rather than hardcoding the string placement based on the length of
English strings, the only solution here is to shorten the German
translation (I suspect by using an abbreviation such as #Besch.:
%ld)

Of course, such problem might very well happen in other places in
aptitude as some things seem to rely on string concatenation,
unfortunately.





signature.asc
Description: Digital signature


Bug#674045: aptitude: German translation says #Broken but shows no number

2012-05-23 Thread Daniel Hartwig
tags 674045 + pending
thanks

On 23 May 2012 12:59, Christian PERRIER bubu...@debian.org wrote:
 Quoting Andreas Kloeckner (inf...@tiker.net):
 The German translation of aptitude, when encountering broken packages,
 shows (the German equivalent of) #Broken in the header, but does not
 show a number behind this label.


 I confirm this. The German translation is indeed right:

 #: src/pkg_columnizer.cc:394
 #, c-format
 msgid #Broken: %ld
 msgstr #Beschädigt: %ld


 I suspect this is because the string is longer than the original
 English string and is overwritten by the next string.
 The problem doesn't happen in Franch because the translation there
 (#Cassé: %ld) is not longer than the English string.

 So, unless come code is added to consider the real size of strings
 rather than hardcoding the string placement based on the length of
 English strings, the only solution here is to shorten the German
 translation (I suspect by using an abbreviation such as #Besch.:
 %ld)


Calculating this automatically sounds like a durable solution.

Currently we allow each translator to set the default widths of those
columns.  German and some other languages did not have column widths
matching the translated strings for these two: download size and
broken count.

This mechanism is a hack, hard to read, and hard for translators to
use.  I plan to replace it with something more sensible in the near
future.

For the time being I have just updated most translations so that the
default widths of those two columns fits nicely.  No action is
required of the German team to fix this.

There are some other languages where this is an issue because both of
those columns are very wide, and I will follow up with the relevant
translation teams shortly.

Regards



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#674045: aptitude: German translation says #Broken but shows no number

2012-05-22 Thread Andreas Kloeckner
Package: aptitude
Version: 0.6.7-1
Severity: normal
Tags: l10n

Dear Maintainer,

The German translation of aptitude, when encountering broken packages,
shows (the German equivalent of) #Broken in the header, but does not
show a number behind this label.

Thanks,
Andreas

-- Package-specific info:
Terminal: xterm-256color
$DISPLAY is set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.6.7 compiled at May  5 2012 02:05:03
Compiler: g++ 4.6.3
Compiled against:
  apt version 4.12.0
  NCurses version 5.9
  libsigc++ version: 2.2.10
  Ept support enabled.
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 5.9.20110404
  cwidget version: 0.5.16
  Apt version: 4.12.0

aptitude linkage:
linux-vdso.so.1 =  (0x7fffe0526000)
libapt-pkg.so.4.12 = /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 
(0x7f8e1ae4d000)
libncursesw.so.5 = /lib/x86_64-linux-gnu/libncursesw.so.5 
(0x7f8e1ac1e000)
libtinfo.so.5 = /lib/x86_64-linux-gnu/libtinfo.so.5 
(0x7f8e1a9f5000)
libsigc-2.0.so.0 = /usr/lib/libsigc-2.0.so.0 (0x7f8e1a7f)
libcwidget.so.3 = /usr/lib/libcwidget.so.3 (0x7f8e1a4f)
libept.so.1.0.5.4.12 = /usr/lib/libept.so.1.0.5.4.12 
(0x7f8e1a29d000)
libxapian.so.22 = /usr/lib/libxapian.so.22 (0x7f8e19eb9000)
libz.so.1 = /usr/lib/x86_64-linux-gnu/libz.so.1 (0x7f8e19ca3000)
libsqlite3.so.0 = /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 
(0x7f8e199fb000)
libboost_iostreams.so.1.49.0 = /usr/lib/libboost_iostreams.so.1.49.0 
(0x7f8e197e2000)
libpthread.so.0 = /lib/x86_64-linux-gnu/libpthread.so.0 
(0x7f8e195c6000)
libstdc++.so.6 = /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
(0x7f8e192be000)
libm.so.6 = /lib/x86_64-linux-gnu/libm.so.6 (0x7f8e1903c000)
libgcc_s.so.1 = /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x7f8e18e26000)
libc.so.6 = /lib/x86_64-linux-gnu/libc.so.6 (0x7f8e18a9e000)
libutil.so.1 = /lib/x86_64-linux-gnu/libutil.so.1 (0x7f8e1889b000)
libdl.so.2 = /lib/x86_64-linux-gnu/libdl.so.2 (0x7f8e18697000)
libbz2.so.1.0 = /lib/x86_64-linux-gnu/libbz2.so.1.0 
(0x7f8e18486000)
libuuid.so.1 = /lib/x86_64-linux-gnu/libuuid.so.1 (0x7f8e18281000)
librt.so.1 = /lib/x86_64-linux-gnu/librt.so.1 (0x7f8e18078000)
/lib64/ld-linux-x86-64.so.2 (0x7f8e1b7e9000)

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.3.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  libapt-pkg4.120.9.3
ii  libboost-iostreams1.49.0  1.49.0-2
ii  libc6 2.13-32
ii  libcwidget3   0.5.16-3.2
ii  libept1.4.12  1.0.6.1
ii  libgcc1   1:4.7.0-8
ii  libncursesw5  5.9-7
ii  libsigc++-2.0-0c2a2.2.10-0.1
ii  libsqlite3-0  3.7.11-3
ii  libstdc++64.7.0-8
ii  libtinfo5 5.9-7
ii  libxapian22   1.2.10-1
ii  zlib1g1:1.2.7.dfsg-1

Versions of packages aptitude recommends:
ii  apt-xapian-indexnone
ii  aptitude-doc-en | aptitude-doc  none
ii  libparse-debianchangelog-perl   none
ii  sensible-utils  0.0.6

Versions of packages aptitude suggests:
ii  debtags  none
ii  tasksel  3.09

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org