Mailinglist Archive: zypp-commit (149 mails)

< Previous Next >
[zypp-commit] r5352 - in /branches/SuSE-Linux-10_2-Branch/updater-kde/updater: Constants.h MainWindow.cpp TrayIcon.cpp main.cpp
  • From: tgoettlicher@xxxxxxxxxxxxxxxx
  • Date: Thu, 12 Apr 2007 11:05:14 -0000
  • Message-id: <20070412110514.6E87E236AA@xxxxxxxxxxxxxxxx>
Author: tgoettlicher
Date: Thu Apr 12 13:05:14 2007
New Revision: 5352

URL: http://svn.opensuse.org/viewcvs/zypp?rev=5352&view=rev
Log:
fix i18n issues caused by changing PROGRAM_NAME

Modified:
    branches/SuSE-Linux-10_2-Branch/updater-kde/updater/Constants.h
    branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.cpp
    branches/SuSE-Linux-10_2-Branch/updater-kde/updater/TrayIcon.cpp
    branches/SuSE-Linux-10_2-Branch/updater-kde/updater/main.cpp

Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/Constants.h
URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-10_2-Branch/updater-kde/updater/Constants.h?rev=5352&r1=5351&r2=5352&view=diff
==============================================================================
--- branches/SuSE-Linux-10_2-Branch/updater-kde/updater/Constants.h (original)
+++ branches/SuSE-Linux-10_2-Branch/updater-kde/updater/Constants.h Thu Apr 12 13:05:14 2007
@@ -20,8 +20,8 @@
 #ifndef _CONSTANTS_H_
 #define _CONSTANTS_H_
 
-#define ICON_NAME "opensuseupdater"
-#define PROGRAM_NAME "openSUSE Updater"
+#define PROGRAM_NAME "opensuseupdater"
+#define PROGRAM_DISPLAY_NAME "openSUSE Updater"
 #define VERSION "0.4"
 
 #define TRAY_ICON_GREEN "opensuseupdater_green"

Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.cpp
URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.cpp?rev=5352&r1=5351&r2=5352&view=diff
==============================================================================
--- branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.cpp (original)
+++ branches/SuSE-Linux-10_2-Branch/updater-kde/updater/MainWindow.cpp Thu Apr 12 13:05:14 2007
@@ -55,7 +55,7 @@
     , _caps(caps)
 {
 
-       KIconLoader iconLoader(ICON_NAME);
+       KIconLoader iconLoader(PROGRAM_NAME);
 
        applet = new TrayIcon(this);
        applet->show();
@@ -113,7 +113,7 @@
 
 
        KIconLoader *loader = KGlobal::iconLoader();
-       setIcon(loader->loadIcon(ICON_NAME, KIcon::Small));
+       setIcon(loader->loadIcon(PROGRAM_NAME, KIcon::Small));
  
        mainBox = new QVBoxLayout(centralWidget);
        header = new HeaderWidget(centralWidget);

Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/TrayIcon.cpp
URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-10_2-Branch/updater-kde/updater/TrayIcon.cpp?rev=5352&r1=5351&r2=5352&view=diff
==============================================================================
--- branches/SuSE-Linux-10_2-Branch/updater-kde/updater/TrayIcon.cpp (original)
+++ branches/SuSE-Linux-10_2-Branch/updater-kde/updater/TrayIcon.cpp Thu Apr 12 13:05:14 2007
@@ -29,7 +29,7 @@
 TrayIcon::TrayIcon(QWidget *parent) : KSystemTray(parent), 
                                                                                                                                                        updateCount(0),
                                                                                                                                                        appletState(APPLET_NO_UPDATES) {
-       KIconLoader iconLoader(ICON_NAME);
+       KIconLoader iconLoader(PROGRAM_NAME);
 
        setPixmap(loadIcon(TRAY_ICON_GREEN));
        setScaledContents(true);

Modified: branches/SuSE-Linux-10_2-Branch/updater-kde/updater/main.cpp
URL: http://svn.opensuse.org/viewcvs/zypp/branches/SuSE-Linux-10_2-Branch/updater-kde/updater/main.cpp?rev=5352&r1=5351&r2=5352&view=diff
==============================================================================
--- branches/SuSE-Linux-10_2-Branch/updater-kde/updater/main.cpp (original)
+++ branches/SuSE-Linux-10_2-Branch/updater-kde/updater/main.cpp Thu Apr 12 13:05:14 2007
@@ -34,7 +34,7 @@
 
 int main(int argc, char **argv) {
 
-       KAboutData about(PROGRAM_NAME, PROGRAM_NAME, VERSION, "SUSE Updater");
+       KAboutData about(PROGRAM_NAME, PROGRAM_DISPLAY_NAME, VERSION, "SUSE Updater");
        KCmdLineArgs::init(argc, argv, &about);
        KUniqueApplication::addCmdLineOptions();
 

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

< Previous Next >
This Thread
  • No further messages