[krita] /: If there translations in the build or src dir, install them

Boudewijn Rempt null at kde.org
Fri May 18 12:52:42 UTC 2018


Git commit c8b8a016e9d0c9aa801e06ad62fd57c5d3a5319d by Boudewijn Rempt.
Committed on 18/05/2018 at 12:52.
Pushed by rempt into branch 'master'.

If there translations in the build or src dir, install them

Note: I have no idea whether the createtarball ruby script would
still add this code at the end of the top-level CMakeLists.txt
file...

Second note: to fetch the translations, run cmake with the following
option:

cmake ../krita -DKDE_L10N_AUTO_TRANSLATIONS=ON -D... This will
fetch the translations from subversion (so svn needs to be installed).
If you build master, it will fetch the right translations.

Not sure whether if you're on the stable branch, it will automatically
know that that's the stable branch...

You can also run "make fetch-translations" manually.

CCMAIL:kimageshop at kde.org
BUG:394381

M  +5    -0    CMakeLists.txt

https://commits.kde.org/krita/c8b8a016e9d0c9aa801e06ad62fd57c5d3a5319d

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cbef9cedda7..242197988a4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -745,3 +745,8 @@ foreach(tst ${KRITA_BROKEN_TESTS})
 endforeach()
 
 feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
+
+if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/po OR EXISTS ${CMAKE_CURRENT_BINARY_DIR}/po )
+  find_package(KF5I18n CONFIG REQUIRED)
+  ki18n_install(po)
+endif()


More information about the kimageshop mailing list