[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: word puzzling in composewin status bar
From:       "Aaron J. Seigo" <aseigo () olympusproject ! org>
Date:       2002-03-02 13:33:46
[Download RAW message or body]

On March 2, 2002 06:10 am, Francois-Xavier Duranceau wrote:
> Hi KMail guys,
>
> Please could you remove the word puzzling and internationalize " %1: %2 "
> in the lines below? It breaks at least french translation.

i've committed the following fix to CVS...

Index: kmcomposewin.cpp
===================================================================
RCS file: /home/kde/kdenetwork/kmail/kmcomposewin.cpp,v
retrieving revision 1.474
diff -u -3 -d -p -r1.474 kmcomposewin.cpp
--- kmcomposewin.cpp    2002/03/01 13:32:29     1.474
+++ kmcomposewin.cpp    2002/03/02 19:22:11
@@ -927,8 +927,8 @@ void KMComposeWin::setupStatusBar(void)
   statusBar()->insertItem("", 0, 1);
   statusBar()->setItemAlignment(0, AlignLeft | AlignVCenter);

-  statusBar()->insertItem(QString(i18n(" Column"))+":     ",2,0,true);
-  statusBar()->insertItem(QString(i18n(" Line"))+":     ",1,0,true);
+  statusBar()->insertItem(i18n(" Column: %1 ").arg("     "),2,0,true);
+  statusBar()->insertItem(i18n(" Line: %1 ").arg("     "),1,0,true);
 }


@@ -939,9 +939,9 @@ void KMComposeWin::updateCursorPosition(
   QString temp;
   line = mEditor->currentLine();
   col = mEditor->currentColumn();
-  temp = QString(" %1: %2 ").arg(i18n("Line")).arg(line+1);
+  temp = i18n(" Line: %1 ").arg(line+1);
   statusBar()->changeItem(temp,1);
-  temp = QString(" %1: %2 ").arg(i18n("Column")).arg(col+1);
+  temp = i18n(" Column: %1 ").arg(col+1);
   statusBar()->changeItem(temp,2);
 }

-- 
Aaron Seigo
_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic