Hi, Continuing testing python applets and trying to get translations working. I tried contents/locale/fi/LC_MESSAGES/pluginname.mo but it didn't work before I added following code. Is this correct fix or should I use something else for po file names?
Petri
Index: applet.cpp
@@ -2271,6 +2275,7 @@
//FIXME: we should _probably_ use a KComponentData to segregate the
applets
// from each other; but I want to get the basics working first
:)
KGlobal::dirs()->addResourceDir("locale", translationsPath);
+ KGlobal::locale()->insertCatalog(package->metadata().pluginName());
}
QString xmlPath = package->filePath("mainconfigxml");
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Plasma-devel mailing list [email protected] https://mail.kde.org/mailman/listinfo/plasma-devel
