summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurkhard Lück <[email protected]>2015-07-24 21:48:29 +0200
committerDennis Nienhüser <[email protected]>2015-07-24 23:22:56 +0200
commit1e7b9d66b71fccf48dddd84398d853bac6039546 (patch)
treee5d50bcc7dba12cdfcfcee68166c56076d3e0804
parentf3969b9e74b0183476ac225317d64b55ba30b272 (diff)
Load gettext catalog 'marble' for translations
-rw-r--r--src/apps/marble-kde/CMakeLists.txt2
-rw-r--r--src/apps/marble-kde/kdemain.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/apps/marble-kde/CMakeLists.txt b/src/apps/marble-kde/CMakeLists.txt
index 54c7a8b..e6c2386 100644
--- a/src/apps/marble-kde/CMakeLists.txt
+++ b/src/apps/marble-kde/CMakeLists.txt
@@ -37,7 +37,7 @@ install(FILES marble_geo.desktop DESTINATION ${APPS_INSTALL_DIR})
install(FILES marble_worldwind.desktop DESTINATION ${APPS_INSTALL_DIR})
install(FILES marble_part.rc marbleui.rc marble.knsrc DESTINATION ${KXMLGUI_INSTALL_DIR}/marble)
-qt5_wrap_ui(marble_kde_SRCS ${marble_UI})
+ki18n_wrap_ui(marble_kde_SRCS ${marble_UI})
kconfig_add_kcfg_files(marble_kde_SRCS settings.kcfgc)
ecm_install_icons(ICONS
diff --git a/src/apps/marble-kde/kdemain.cpp b/src/apps/marble-kde/kdemain.cpp
index 5a3047e..6ce2e39 100644
--- a/src/apps/marble-kde/kdemain.cpp
+++ b/src/apps/marble-kde/kdemain.cpp
@@ -302,7 +302,10 @@ int main ( int argc, char *argv[] )
parser.process( app );
- KLocalizedString::setApplicationDomain("marble_qt");
+ KLocalizedString::setApplicationDomain("marble");
+
+ // use ecm_create_qm_loader(marblewidget_SRCS marble_qt)
+ // in the library src/lib/marble/CMakeList.txt to load the second catalog
MarbleDebug::setEnabled( parser.isSet( debugOption ) );