summaryrefslogtreecommitdiffstats
path: root/po/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-12-16 06:10:39 +0100
committerSlávek Banko <[email protected]>2018-12-16 11:28:42 +0100
commit4d2b10ef89a1deee70fdcc1cc21369e4e14c152a (patch)
tree5950b161e19bf8c09aa4898d5b4855b893b188fe /po/CMakeLists.txt
parent5736e5f2e95437cc8ee55ebe74300f46bdc9c3c0 (diff)
downloadkvpnc-4d2b10ef89a1deee70fdcc1cc21369e4e14c152a.tar.gz
kvpnc-4d2b10ef89a1deee70fdcc1cc21369e4e14c152a.zip
Add CMakeL10n rules.
Update translation template. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit c68e16caea2fab5283b43cad43e8064ad4fa6a6f)
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r--po/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
index f5a2e1b..46fba83 100644
--- a/po/CMakeLists.txt
+++ b/po/CMakeLists.txt
@@ -1 +1,6 @@
-tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
+# build translations if some are already available
+
+file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
+if( _srcs )
+ tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
+endif( )