ki18n framework split out of kdecore.

This commit is contained in:
Chusslove Illich (Часлав Илић) 2012-11-18 20:26:13 +01:00
parent 4d6f91067a
commit d60e4e5a4a
4 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@
#include <kplugininfo.h>
#include <kservicetypetrader.h>
#include <kstandarddirs.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include <kiconloader.h>
#include <qstandardpaths.h>
@ -449,7 +449,7 @@ void AbstractRunnerPrivate::setupScriptSupport()
const QString translationsPath = package->filePath("translations");
if (!translationsPath.isEmpty()) {
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KLocale::global()->insertCatalog(runnerDescription.pluginName());
KLocalizedString::insertCatalog(runnerDescription.pluginName());
}
}

View File

@ -32,7 +32,7 @@
#include <kservice.h>
#include <kservicetypetrader.h>
#include <kstandarddirs.h>
#include <klocale.h>
#include <klocalizedstring.h>
#include "datacontainer.h"
#include "package.h"
@ -706,7 +706,7 @@ void DataEnginePrivate::setupScriptSupport()
const QString translationsPath = package->filePath("translations");
if (!translationsPath.isEmpty()) {
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KLocale::global()->insertCatalog(dataEngineDescription.pluginName());
KLocalizedString::insertCatalog(dataEngineDescription.pluginName());
}
}

View File

@ -575,7 +575,7 @@ void AppletPrivate::setupScriptSupport()
const QString translationsPath = package->filePath("translations");
if (!translationsPath.isEmpty()) {
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KLocale::global()->insertCatalog(appletDescription.pluginName());
KLocalizedString::insertCatalog(appletDescription.pluginName());
}
const QString xmlPath = package->filePath("mainconfigxml");

View File

@ -36,7 +36,7 @@
#include <kglobal.h>
#include <kservicetypetrader.h>
#include <kstandarddirs.h>
#include <klocale.h>
#include <klocalizedstring.h>
#if !PLASMA_NO_KIO
#include <kio/job.h>
@ -560,7 +560,7 @@ void WallpaperPrivate::setupScriptSupport()
const QString translationsPath = package->filePath("translations");
if (!translationsPath.isEmpty()) {
KGlobal::dirs()->addResourceDir("locale", translationsPath);
KLocale::global()->insertCatalog(wallpaperDescription.pluginName());
KLocalizedString::insertCatalog(wallpaperDescription.pluginName());
}
}