--6aefd008ee994340801303d1a5cfb005 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 libcore and libviews). 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. TEST PLAN The code compiles, and content of the right pane (coming from libviews and libcore) is now translated. REPOSITORY R49 KCacheGrind BRANCH master REVISION DETAIL https://phabricator.kde.org/D4795 AFFECTED FILES CMakeLists.txt kcachegrind/CMakeLists.txt EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: ltoscano, #localization Cc: #localization --6aefd008ee994340801303d1a5cfb005 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 libcore and libviews).
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.
The code compiles, and content of the right pane (coming from
libviews and libcore) is now translated.