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

List:       kde-i18n-doc
Subject:    Re: kfilemodule and makekdewidgets catalogs
From:       Burkhard =?ISO-8859-1?Q?L=FCck?= <lueck () hube-lueck ! de>
Date:       2014-04-10 12:56:06
Message-ID: 3158707.aPjMsvYHMf () parodia
[Download RAW message or body]

Am Donnerstag, 10. April 2014, 08:42:55 schrieb Yuri Chornoivan:
> Hi,
> 
> It seems that some parts of kdelibs messages are extracted to kio4.pot
> catalog but for kfilemodule and makekdewidgets these messages are loaded
>  from the corresponding catalogs. This leads to untranslated dialogs in Qt
> applications.
> 
> The downstream bug report:
> 
> https://bugs.mageia.org/show_bug.cgi?id=12982
> 
> Can somebody help with some solution?
> 
With the attached patch kfilemodule and makekdewidgets load the translation 
catalog kio4, should work for kfilemodule but I fail to see how makekdewidgets 
is involved here.

I could not find a suitable deb package for feff, have no clue what app afce is 
and am not aware of a Qt-App using these kde dialogs on my system, so it is 
untested.

-- 
Burkhard Lück

["kdelibs-kfilemodule-makekdewidgets-load-kio4-translations.diff" (kdelibs-kfilemodule-makekdewidgets-load-kio4-translations.diff)]

diff --git a/kdewidgets/makekdewidgets.cpp b/kdewidgets/makekdewidgets.cpp
index 3556572..3e7fb2a 100644
--- a/kdewidgets/makekdewidgets.cpp
+++ b/kdewidgets/makekdewidgets.cpp
@@ -91,7 +91,7 @@ int main( int argc, char **argv ) {
     options.add("g <group>", ki18n( "Default widget group name to display in \
designer" ), "Custom" );  
 
-    KAboutData about( "makekdewidgets", 0, ki18n( "makekdewidgets" ), version, \
description, KAboutData::License_GPL, ki18n("(C) 2004-2005 Ian Reinhart Geiser"), \
KLocalizedString(), 0, "geiseri@kde.org" ); +    KAboutData about( "makekdewidgets", \
"kio4", ki18n( "makekdewidgets" ), version, description, KAboutData::License_GPL, \
ki18n("(C) 2004-2005 Ian Reinhart Geiser"), KLocalizedString(), 0, "geiseri@kde.org" \
                );
     about.addAuthor( ki18n("Ian Reinhart Geiser"), KLocalizedString(), \
                "geiseri@kde.org" );
     about.addAuthor( ki18n("Daniel Molkentin"), KLocalizedString(), \
"molkentin@kde.org" );  KCmdLineArgs::init( argc, argv, &about );
diff --git a/kfile/kfilemodule.cpp b/kfile/kfilemodule.cpp
index 5805756..f988b4b 100644
--- a/kfile/kfilemodule.cpp
+++ b/kfile/kfilemodule.cpp
@@ -24,7 +24,7 @@
 #include <kpluginfactory.h>
 
 K_PLUGIN_FACTORY(KFileModuleFactory, registerPlugin<KFileModule>();)
-K_EXPORT_PLUGIN(KFileModuleFactory("kfilemodule"))
+K_EXPORT_PLUGIN(KFileModuleFactory("kfilemodule", "kio4"))
 
 KFileModule::KFileModule(QObject* parent, const QVariantList&)
     : KAbstractFileModule(parent)



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

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