Bug 80295

Summary: [Patch] i18n message catalog is not loaded for dock
Product: klaptopdaemon Reporter: Sebastien Renard <renard>
Component: generalAssignee: Paul Campbell <paul>
Status: RESOLVED FIXED    
Severity: normal CC: giovanni, lukas
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sebastien Renard 2004-04-25 11:59:31 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    Compiled From Sources
OS:          Linux

Hello,

The klaptopdaemon dock messages are all in english despite use of i18() in code and traduction of .po.

This is due to the lack of loading catalog message in klaptopdaemon/daemondock.cpp.

With the following patch, it works :

--- kdeutils-3.2.2/klaptopdaemon/daemondock.cpp 2004-04-04 11:16:24.000000000 +0200
+++ kdeutils-3.2.2-1/klaptopdaemon/daemondock.cpp       2004-04-25 11:29:52.000000000 +0200
@@ -52,6 +52,7 @@
     pdaemon = parent;
     current_code = -1;
     brightness_widget = 0;
+               KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages
     instance = new KInstance("klaptopdaemon");
       // popup menu for right mouse button
     rightPopup = contextMenu();



However, I am not sure I put the "instertCatalogue" statement in the best place. But I tested it and it works, I have now klaptopdock « en français » ;-)

Have a very good day, and thank you for klaptop, keep up the good work.
Comment 1 Stephan Binner 2004-07-17 21:05:34 UTC
*** Bug 82994 has been marked as a duplicate of this bug. ***
Comment 2 Stephan Binner 2004-07-31 11:11:40 UTC
*** Bug 86229 has been marked as a duplicate of this bug. ***
Comment 3 Giovanni Venturi 2004-08-02 12:34:34 UTC
Fixed adding:
KGlobal::locale()->insertCatalogue("klaptopdaemon"); // For translation of klaptopdaemon messages

into: kdeutils/klaptopdaemon/daemondock.cpp in the member laptop_dock::laptop_dock( laptop_daemon* parent )
  : KSystemTray()