ki18n framework split out of kdecore.
This commit is contained in:
parent
4d6f91067a
commit
d60e4e5a4a
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user