diff --git a/dataengine.cpp b/dataengine.cpp index d1757ef7e..5a26d8e38 100644 --- a/dataengine.cpp +++ b/dataengine.cpp @@ -741,10 +741,10 @@ void DataEnginePrivate::setupScriptSupport() << ", main script is" << package->filePath("mainscript"); */ - QString translationsPath = package->filePath("translations"); + const QString translationsPath = package->filePath("translations"); if (!translationsPath.isEmpty()) { KGlobal::dirs()->addResourceDir("locale", translationsPath); - KGlobal::locale()->insertCatalog(package->metadata().pluginName()); + KGlobal::locale()->insertCatalog(dataEngineDescription.pluginName()); } }