Commit 3eec769c authored by Luigi Toscano's avatar Luigi Toscano

Support also translated doc added in the KDE Application tarball

Summary:
This is a follow-up of D5648, where the translatations (both native
and KI18n-based for the Frameworks applications) are now handle
directly in the tarball. This change add the last bit (support for
translated user documentation).

Test Plan: Only tested compilation without po/

Reviewers: kossebau, rahn, nienhueser

Reviewed By: nienhueser

Differential Revision: https://phabricator.kde.org/D5738
parent 87df1026
......@@ -347,9 +347,10 @@ marble_install_po_files_as_qm(poqm)
# Toplevel subdir "po/" holds all the po files which should be processed and installed as mo files
# Those are used by app and plugin code building against KI18n.
# So the respective macro ki18n_install can be used.
# Just, the macro is not available here in the toplevel CMakeLists.txt file.
# As a temporary hack (your task to improve it, dear reader :) ) the macro
# is called only from src/apps/marble-kde/CMakeLists.txt.
# Likewise, it contains the translated user documentation, which is handled by kdoctools_install.
# Just, the macros are not available here in the toplevel CMakeLists.txt file.
# As a temporary hack (your task to improve it, dear reader :) ) the macros
# are called only from src/apps/marble-kde/CMakeLists.txt.
# That should catch 99.9 % cases of builds from released tarball, where all the
# KF5-dependant apps and plugins will be built and installed together.
# Currently these are:
......
......@@ -81,6 +81,13 @@ install(FILES marble.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES marble_geo.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES marble_worldwind.desktop DESTINATION ${KDE_INSTALL_APPDIR})
# Handle mo-targetted translation catalogs as added for release tarballs
# see toplevel CMakeLists.txt for further explanation why it is done here
# Handle mo-targetted translation catalogs and translated user documentation
# as added for release tarballs.
# See toplevel CMakeLists.txt for further explanation why it is done here
ki18n_install(${CMAKE_SOURCE_DIR}/po)
macro_optional_find_package(KF5 ${REQUIRED_KF5_VERSION} QUIET COMPONENTS DocTools)
if (KF5DocTools_FOUND)
kdoctools_install(${CMAKE_SOURCE_DIR}/po)
endif()
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