Diffusion Step 09e3268eaa2b

Correctly load the Qt-native translations

Authored by ltoscano on Feb 25 2017, 8:43 PM.

Description

Correctly load the Qt-native translations

Summary:
ecm_create_qm_loader() uses Q_COREAPP_STARTUP_FUNCTION to inject the
loader of the additiona translator. The macro does not seem to work
when the loader is linked in a separate static library (the code
which uses Qt translations is all inside stepcore).
So call the ECM macro (and then link the special loader) where
the Q(Core)Application is defined.
Many previously untranslated strings are not translated.
Some additional work is needed but it probably depends on the
special structure of stepcore.

Test Plan:
The code compiles, and the name of the objects (left pane) and the
properties (part of the right pane) are translated

Reviewers: Localization, KDE Edu, aacid

Reviewed By: Localization, aacid

Subscribers: aacid, KDE Edu, Localization

Tags: KDE Edu

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

Details

Committed
ltoscanoFeb 25 2017, 11:38 PM
Reviewer
Localization
Differential Revision
D4793: Correctly load the Qt-native translations
Parents
R341:bf3138556739: GIT_SILENT made messages (after extraction)
Branches
Unknown
Tags
Unknown
References
tag: v16.12.3, Applications/16.12