Commit 09e3268e authored by Luigi Toscano's avatar Luigi Toscano

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
parent bf313855
......@@ -62,6 +62,8 @@ kconfig_add_kcfg_files( step_SRCS ${step_KCFGS} )
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
ecm_create_qm_loader(step_SRCS step_qt)
add_executable(step ${step_SRCS})
target_link_libraries(step
......
......@@ -33,8 +33,6 @@ set(stepcore_SRCS
xmlfile.cc
)
ecm_create_qm_loader(stepcore_SRCS step_qt)
if(STEPCORE_WITH_GSL)
add_definitions(-DSTEPCORE_WITH_GSL)
include_directories(${GSL_INCLUDE_DIR})
......
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