Bug 102421 - I can't see well the status bar fields because the words space in some languajes
Summary: I can't see well the status bar fields because the words space in some languajes
Status: RESOLVED FIXED
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-25 02:18 UTC by Iñaki Baz Castillo
Modified: 2005-07-26 22:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iñaki Baz Castillo 2005-03-25 02:18:41 UTC
Version:           v0.8.4 (using KDE 3.4.0, Debian Package 4:3.4.0-0pre1 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.7-ck6

I use KDE in Spanish. In the status bar of Kget I can see:

- Transferencias (Transfers)
- Archivos (Files)
- Tamaño (Size)
- Tiempo (Time)
- Bytes/seg (Bytes/sec)

All the words are longer than English words, so they overload the space assigned fot each one, and I can't see enterely the remaining time, the size, the number of transfers, etc.

For example, in Inglish I can see: [Time: 00:00:00]
But in Spanish I see:              [Tiempo: 00:00:0]

Is it possible to make those fields bigger?
Comment 1 Urs Wolfer 2005-07-26 21:23:43 UTC
SVN commit 438991 by uwolfer:

Size of statusbar fields (time, speed, ...) are updated now after each change. So the text cannot be cut off.

BUG: 102421

 M  +7 -1      kmainwidget.cpp  


--- trunk/KDE/kdenetwork/kget/kmainwidget.cpp #438990:438991
@@ -401,7 +401,7 @@
     statusBar()->insertFixedItem(i18n(" Transfers: %1 ").arg(99), ID_TOTAL_TRANSFERS);
     statusBar()->insertFixedItem(i18n(" Files: %1 ").arg(555), ID_TOTAL_FILES);
     statusBar()->insertFixedItem(i18n(" Size: %1 KB ").arg("134.56"), ID_TOTAL_SIZE);
-    statusBar()->insertFixedItem(i18n(" Time: %1 ").arg(KIO::convertSeconds(0)) + "            ", ID_TOTAL_TIME); //added some spaces because "2 days 12:12:12" need more place as "12:12:12"
+    statusBar()->insertFixedItem(i18n(" Time: %1 ").arg(KIO::convertSeconds(0)), ID_TOTAL_TIME);
     statusBar()->insertFixedItem(i18n(" %1 KB/s ").arg("123.34"), ID_TOTAL_SPEED);
 
     setAutoSaveSettings( "MainWindow", false /*Settings takes care of size & pos & state */ );
@@ -2103,6 +2103,12 @@
     statusBar()->changeItem(i18n(" Size: %1 ").arg(KIO::convertSize(totalSize)), ID_TOTAL_SIZE);
     statusBar()->changeItem(i18n(" Time: %1 ").arg(KIO::convertSeconds(remTime)), ID_TOTAL_TIME);
     statusBar()->changeItem(i18n(" %1/s ").arg(KIO::convertSize(totalSpeed)), ID_TOTAL_SPEED);
+    //update size for each statusbar field
+    statusBar()->setItemFixed(ID_TOTAL_TRANSFERS, -1);
+    statusBar()->setItemFixed(ID_TOTAL_FILES, -1);
+    statusBar()->setItemFixed(ID_TOTAL_SIZE, -1);
+    statusBar()->setItemFixed(ID_TOTAL_TIME, -1);
+    statusBar()->setItemFixed(ID_TOTAL_SPEED, -1);
 
     if (kdock) {
         tmpstr = i18n("<b>Transfers:</b> %1 ").arg(myTransferList->childCount()) +
Comment 2 Iñaki Baz Castillo 2005-07-26 22:39:08 UTC
Thanks a lot for your work.