Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit a0ef3397 authored by Sebastian Kügler's avatar Sebastian Kügler

Do not mess with KLS::setApplicationDomain

This is a no-no in library code (which plugins are), as it may break
applications' translations that load this plugin / library.

Use new API KLocalizedString::availableDomainTranslations instead.
parent 8b9275b9
......@@ -51,9 +51,6 @@ KCMTranslations::KCMTranslations(QWidget *parent, const QVariantList &args)
// Set the translation domain
// Get the current config
m_config = KConfigGroup(KSharedConfig::openConfig(configFile), "Translations");
......@@ -89,11 +86,7 @@ void KCMTranslations::load()
// TODO May want to later add all installed .po files on system?
// We reset the application domain temporarily, so available translations for
// "systemsettings" are searched, not this KCM.
m_installedTranslations = KLocalizedString::availableApplicationTranslations().toList();
m_installedTranslations = KLocalizedString::availableDomainTranslations("systemsettings").toList();
if (!m_installedTranslations.contains("en_US")) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment