rev 9293 - in kde-extras/ktorrent/branches/experimental/debian: . patches
Modestas Vainius
modax-guest at alioth.debian.org
Tue Feb 5 18:17:50 UTC 2008
Author: modax-guest
Date: 2008-02-05 18:17:50 +0000 (Tue, 05 Feb 2008)
New Revision: 9293
Added:
kde-extras/ktorrent/branches/experimental/debian/patches/05_infowidget_localizednumber.diff
Modified:
kde-extras/ktorrent/branches/experimental/debian/changelog
kde-extras/ktorrent/branches/experimental/debian/patches/series
Log:
New patch 05_infowidget_localizednumber.diff - show localized number instead of
"1e+02 %" in infowidget "Files" view "% Complete" column. Hopefully the last my patch for rc1 -1
Modified: kde-extras/ktorrent/branches/experimental/debian/changelog
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/changelog 2008-02-05 16:13:19 UTC (rev 9292)
+++ kde-extras/ktorrent/branches/experimental/debian/changelog 2008-02-05 18:17:50 UTC (rev 9293)
@@ -34,6 +34,8 @@
- 04_pastedialog_support_remote_urls.diff - add back support for remote
urls in "Paste Torrent URL" dialog. The patch fixes incorrect KUrl API
usage.
+ - 05_infowidget_localizednumber.diff - show localized number instead of
+ "1e+02 %" in infowidget "Files" view "% Complete" column.
* Add "DM-Upload-Allowed: yes" to debian/control source section.
* Tweak overrides.lintian by adding "libktcore2 libktupnp1" to
package-name-doesnt-match-sonames. These libraries are supposed to be used
@@ -53,7 +55,7 @@
there is no confusion anymore (Closes: #372162).
* Update debian/copyright.
- -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org> Tue, 05 Feb 2008 04:40:57 +0200
+ -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org> Tue, 05 Feb 2008 13:06:34 +0200
ktorrent (2.2.4.dfsg.1-1) unstable; urgency=medium
Added: kde-extras/ktorrent/branches/experimental/debian/patches/05_infowidget_localizednumber.diff
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/patches/05_infowidget_localizednumber.diff (rev 0)
+++ kde-extras/ktorrent/branches/experimental/debian/patches/05_infowidget_localizednumber.diff 2008-02-05 18:17:50 UTC (rev 9293)
@@ -0,0 +1,44 @@
+diff -uNr -x debian -x .pc ktorrent-3.0~rc1.dfsg.1/plugins/infowidget/iwfilelistmodel.cpp ktorrent-3.0~rc1.dfsg.1.n/plugins/infowidget/iwfilelistmodel.cpp
+--- ktorrent-3.0~rc1.dfsg.1/plugins/infowidget/iwfilelistmodel.cpp 2008-01-27 13:56:46.000000000 +0200
++++ ktorrent-3.0~rc1.dfsg.1.n/plugins/infowidget/iwfilelistmodel.cpp 2008-02-05 13:35:32.000000000 +0200
+@@ -122,7 +122,7 @@
+ case 4:
+ {
+ float percent = file->getDownloadPercentage();
+- return ki18n("%1 %").subs(percent, 0, 'g', 2).toString();
++ return i18n("%1 %", KGlobal::locale()->formatNumber(percent, 2));
+ }
+ default: return QVariant();
+ }
+@@ -145,7 +145,7 @@
+ case 4:
+ {
+ double percent = bt::Percentage(tc->getStats());
+- return ki18n("%1 %").subs(percent, 0, 'g', 2).toString();
++ return i18n("%1 %", KGlobal::locale()->formatNumber(percent, 2));
+ }
+ default: return QVariant();
+ }
+diff -uNr -x debian -x .pc ktorrent-3.0~rc1.dfsg.1/plugins/infowidget/iwfiletreemodel.cpp ktorrent-3.0~rc1.dfsg.1.n/plugins/infowidget/iwfiletreemodel.cpp
+--- ktorrent-3.0~rc1.dfsg.1/plugins/infowidget/iwfiletreemodel.cpp 2008-01-27 13:56:46.000000000 +0200
++++ ktorrent-3.0~rc1.dfsg.1.n/plugins/infowidget/iwfiletreemodel.cpp 2008-02-05 13:36:27.000000000 +0200
+@@ -120,8 +120,7 @@
+ case 4:
+ {
+ float percent = file->getDownloadPercentage();
+- KLocale* loc = KGlobal::locale();
+- return ki18n("%1 %").subs(percent, 0, 'g', 2).toString();
++ return i18n("%1 %", KGlobal::locale()->formatNumber(percent, 2));
+ }
+ default: return QVariant();
+ }
+@@ -144,8 +143,7 @@
+ case 4:
+ {
+ double percent = bt::Percentage(tc->getStats());
+- KLocale* loc = KGlobal::locale();
+- return ki18n("%1 %").subs(percent, 0, 'g', 2).toString();
++ return i18n("%1 %", KGlobal::locale()->formatNumber(percent, 2));
+ }
+ default: return QVariant();
+ }
Modified: kde-extras/ktorrent/branches/experimental/debian/patches/series
===================================================================
--- kde-extras/ktorrent/branches/experimental/debian/patches/series 2008-02-05 16:13:19 UTC (rev 9292)
+++ kde-extras/ktorrent/branches/experimental/debian/patches/series 2008-02-05 18:17:50 UTC (rev 9293)
@@ -2,3 +2,4 @@
02_kclosestnodessearch_cleanup.diff
03_trunk_pull_r769910.diff -p0
04_pastedialog_support_remote_urls.diff
+05_infowidget_localizednumber.diff
More information about the pkg-kde-commits
mailing list