Adjust libkdecorations for new ki18n

Adds TRANSLATION_DOMAIN as define in CMakeLists.txt.

Removes the left-over from porting.
This commit is contained in:
Martin Gräßlin 2014-04-29 08:10:41 +02:00
parent 7dec86078c
commit c961eb1bf0
2 changed files with 3 additions and 14 deletions

View file

@ -1,3 +1,6 @@
# KI18N Translation Domain for this library
add_definitions(-DTRANSLATION_DOMAIN=\"libkdecorations\")
# kdecorations library
set(kdecorations_LIB_SRCS
kdecoration.cpp

View file

@ -139,20 +139,6 @@ bool KDecorationPlugins::loadPlugin(QString nameStr)
pluginStr = nameStr;
// For clients in kdeartwork
#warning insertCatalog needs porting
#if KWIN_QT5_PORTING
QString catalog = nameStr;
catalog.replace("kwin3_", "kwin_");
KGlobal::locale()->insertCatalog(catalog);
// For KCommonDecoration based clients
KGlobal::locale()->insertCatalog("libkdecorations");
// For clients in kdebase
KGlobal::locale()->insertCatalog("kwin_clients");
// For clients in kdeartwork
KGlobal::locale()->insertCatalog("kwin_art_clients");
#endif
old_fact = fact;
fact = factory;