Commit 5cba8f47 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Ensure setting of custom app language is seen on start-up

The custom language setting is read in from the config in a method hooked
up to the QApp instance creation (see KXMLGUI's kswitchlanguagedialog_p.cpp
sources), which deploys the custom setting by setting the LANGUAGE env var.

For this to work, the respective init code of KLocalizedString static
data, which contains the set of languages as read from the env vars,
needs to be only triggered after the QApp instance creation.

Which includes calling KLocalizedString::setApplicationDomain() only then,
which this patch cares for.
parent 48487d5d
......@@ -314,7 +314,6 @@ int main( int argc, char *argv[] )
qputenv("QT_ENABLE_REGEXP_JIT", "0");
#ifdef Q_OS_MAC
......@@ -356,6 +355,7 @@ int main( int argc, char *argv[] )
KDevelopApplication app(argc, argv);
static const char description[] = I18N_NOOP( "The KDevelop Integrated Development Environment" );
KAboutData aboutData( QStringLiteral("kdevelop"), i18n( "KDevelop" ), QByteArray(VERSION), i18n(description), KAboutLicense::GPL,
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