Mailinglist Archive: zypp-commit (149 mails)

< Previous Next >
[zypp-commit] r5386 - in /branches/work/updater-kde-refactoring/updater-kde/updater: TrayIcon.cpp osupdaterpopup.cpp
  • From: tgoettlicher@xxxxxxxxxxxxxxxx
  • Date: Mon, 16 Apr 2007 11:21:11 -0000
  • Message-id: <20070416112111.8012B1705A@xxxxxxxxxxxxxxxx>
Author: tgoettlicher
Date: Mon Apr 16 13:21:11 2007
New Revision: 5386

URL: http://svn.opensuse.org/viewcvs/zypp?rev=5386&view=rev
Log:
fix some translations lost/missing (#229225)


Modified:
    branches/work/updater-kde-refactoring/updater-kde/updater/TrayIcon.cpp
    branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.cpp

Modified: branches/work/updater-kde-refactoring/updater-kde/updater/TrayIcon.cpp
URL: http://svn.opensuse.org/viewcvs/zypp/branches/work/updater-kde-refactoring/updater-kde/updater/TrayIcon.cpp?rev=5386&r1=5385&r2=5386&view=diff
==============================================================================
--- branches/work/updater-kde-refactoring/updater-kde/updater/TrayIcon.cpp (original)
+++ branches/work/updater-kde-refactoring/updater-kde/updater/TrayIcon.cpp Mon Apr 16 13:21:11 2007
@@ -58,12 +58,17 @@
                        break;
                case APPLET_UPDATES:
                        setPixmap(loadIcon(TRAY_ICON_YELLOW));
-                       QToolTip::add(this, i18n("1 Update Available", "%n Updates Available", updateCount) );
-      
-                 break;
+                        if (updateCount == 1)
+                                QToolTip::add(this, i18n("1 Update Available"));
+                        else
+                                QToolTip::add(this, i18n("%1 Updates Available").arg(updateCount) );
+                       break;
     case APPLET_CRITICAL_UPDATES:
                        setPixmap(loadIcon(TRAY_ICON_RED));
-                       QToolTip::add(this, i18n("1 Important Update Available", "%n Important Updates Available", updateCount) );
+                        if (updateCount == 1)
+                                QToolTip::add(this, i18n("1 Important Update Available"));
+                        else
+                                QToolTip::add(this, i18n("%1 Important Updates Available").arg(updateCount) );
                        break;
        }
 }
@@ -76,4 +81,4 @@
        setState(appletState);
 }
 
-#include "TrayIcon.moc"
\ No newline at end of file
+#include "TrayIcon.moc"

Modified: branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.cpp
URL: http://svn.opensuse.org/viewcvs/zypp/branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.cpp?rev=5386&r1=5385&r2=5386&view=diff
==============================================================================
--- branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.cpp (original)
+++ branches/work/updater-kde-refactoring/updater-kde/updater/osupdaterpopup.cpp Mon Apr 16 13:21:11 2007
@@ -90,8 +90,11 @@
        _updates = newUpdateValue;
        if (_updates > 0)
   {
-    _description->setText(i18n("1 Update Available", "%n Updates Available", _updates));
-               show();
+        if (_updates == 1)
+            _description->setText(i18n("1 Update Available"));
+        else
+            _description->setText(i18n("%1 Updates Available").arg(_updates));
+                show();
   }
 }
 

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages