--PackageMetadata;

This commit is contained in:
Aaron Seigo 2011-05-31 00:11:55 +02:00
parent 03b775fe0c
commit 9b4621d339

View File

@ -514,10 +514,10 @@ void WallpaperPrivate::setupScriptSupport()
<< "which is a" << package->structure()->type() << "package"
<< ", 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(wallpaperDescription.pluginName());
}
}