--e7e0a0865c7d433f863c1fbe67ce377e Content-Type: text/plain; charset="ascii" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit ltoscano created this revision. REVISION 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 REPOSITORY R341 Step BRANCH Applications/16.12 REVISION DETAIL https://phabricator.kde.org/D4793 AFFECTED FILES step/CMakeLists.txt stepcore/CMakeLists.txt EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: ltoscano, #localization Cc: #localization --e7e0a0865c7d433f863c1fbe67ce377e Content-Type: text/html; charset="ascii" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit
ltoscano created this revision. | View Revision
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.
The code compiles, and the name of the objects (left pane) and the
properties (part of the right pane) are translated