Diffusion KI18n 9ae1a9b2e923

API dox: add note about calling setApplicationDomain after QApp creation

Authored by kossebau on Oct 17 2017, 10:13 PM.

Description

API dox: add note about calling setApplicationDomain after QApp creation

Summary:
The current implementation of KLocalizedString::setApplicationDomain()
will trigger the creation of the KLocalizedStringPrivateStatics instance and
thus also the calculation of the locale languanges from the env vars
as set at that time, and QLocale::system() on some platforms.
So the claim that "This call can be made at any place in the code" does not
hold, instead API consumers should be instructed about when to call
the method ideally.

Reviewers: Frameworks, ilic, ltoscano, dfaure

Reviewed By: dfaure

Subscribers: dfaure

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D8351