Bug#223712: [apt-get] Permit i18n support in SizeToStr()
Package: apt
Version: 0.5.14
Severity: wishlist
Tags: patch
Rationale : In French when displaying figures and numbers, one must and a
space between the number and the unit.
ex. 23 Mb, 100 m, 45 euro, etc...
I am not a specialist in C++, but I think that the patch in attachement
will fix the problem.
Cheers,
Pierre Machard
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux twinette 2.6.0-test8 #1 Mon Oct 20 20:05:35 CEST 2003 i686
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro
Versions of packages apt depends on:
ii libc6 2.3.2.ds1-10 GNU C Library: Shared libraries an
ii libgcc1 1:3.3.3-0pre0 GCC support library
ii libstdc++5 1:3.3.3-0pre0 The GNU Standard C++ Library v3
-- no debconf information
--- current/apt-0.5.14/apt-pkg/contrib/strutl.cc 2003-07-18 16:15:11.000000000 +0200
+++ apt-0.5.14/apt-pkg/contrib/strutl.cc 2003-12-11 19:50:38.000000000 +0100
@@ -270,7 +270,7 @@
if (ASize < 10000)
{
- sprintf(S,"%.0f%c",ASize,Ext[I]);
+ sprintf(S,_("%.0f%c"),ASize,Ext[I]);
break;
}
ASize /= 1000.0;
Reply to: