Bug 80295 - [Patch] i18n message catalog is not loaded for dock
Summary: [Patch] i18n message catalog is not loaded for dock
Status: RESOLVED FIXED
Alias: None
Product: klaptopdaemon
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Paul Campbell
URL:
Keywords:
: 82994 86229 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-25 11:59 UTC by Sebastien Renard
Modified: 2006-08-09 20:32 UTC (History)
2 users (show)

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 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()