Adjust libkdecorations for new ki18n
Adds TRANSLATION_DOMAIN as define in CMakeLists.txt. Removes the left-over from porting.
This commit is contained in:
parent
7dec86078c
commit
c961eb1bf0
2 changed files with 3 additions and 14 deletions
|
@ -1,3 +1,6 @@
|
|||
# KI18N Translation Domain for this library
|
||||
add_definitions(-DTRANSLATION_DOMAIN=\"libkdecorations\")
|
||||
|
||||
# kdecorations library
|
||||
set(kdecorations_LIB_SRCS
|
||||
kdecoration.cpp
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue