--PackageMetadata

This commit is contained in:
Aaron Seigo 2011-05-31 00:09:07 +02:00
parent 1ba57eb84c
commit 03b775fe0c

View File

@ -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());
}
}