diff --git a/src/scripting/genericscriptedconfig.cpp b/src/scripting/genericscriptedconfig.cpp index 0811066afa..6686eec277 100644 --- a/src/scripting/genericscriptedconfig.cpp +++ b/src/scripting/genericscriptedconfig.cpp @@ -97,6 +97,11 @@ void GenericScriptedConfig::createUi() return; } + const QString localePath = packageRoot + QLatin1String("/contents/locale"); + if (QFileInfo::exists(localePath)) { + KLocalizedString::addDomainLocaleDir(metaData.value("X-KWin-Config-TranslationDomain").toUtf8(), localePath); + } + QFile xmlFile(kconfigXTFile); KConfigGroup cg = configGroup(); KConfigLoader *configLoader = new KConfigLoader(cg, &xmlFile, this);