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

Boudewijn Rempt null at kde.org
Wed May 23 09:56:40 UTC 2018


Git commit 2388362cea303aeff9e03577d4774d0f57a185d9 by Boudewijn Rempt.
Committed on 23/05/2018 at 09:31.
Pushed by rempt into branch 'krita/4.0'.

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
(cherry picked from commit c8b8a016e9d0c9aa801e06ad62fd57c5d3a5319d)

M  +5    -0    CMakeLists.txt

https://commits.kde.org/krita/2388362cea303aeff9e03577d4774d0f57a185d9

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e4e30d59f0c..ee528c4eae7 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