summaryrefslogtreecommitdiffstats
path: root/po
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-08-17 13:06:41 +0200
committergregory guy <gregory-tde@laposte.net>2021-08-25 15:21:30 +0200
commit2e4e81b25e17309dadfcbce6cda68a0bf9516305 (patch)
treeb14a6e254ed2604ee16bf6fce6ed816a81f0bc29 /po
parentc995c0ed60652f38c8523d1a7ddef4c255afc913 (diff)
downloadlibkdcraw-2e4e81b25e17309dadfcbce6cda68a0bf9516305.tar.gz
libkdcraw-2e4e81b25e17309dadfcbce6cda68a0bf9516305.zip
Conversion to the cmake building system.
Signed-off-by: gregory guy <gregory-tde@laposte.net> some fixes and improvements. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'po')
-rw-r--r--po/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 0000000..0e8b8f9
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1,8 @@
+file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ./*/*.po )
+
+foreach( _po ${po_files} )
+ string( REGEX REPLACE "/.*" "" _lang ${_po} )
+ if( "${_linguas}" MATCHES "^;*$" OR ";${_linguas};" MATCHES ";${_lang};" )
+ tde_create_translation( FILES ${_po} LANG ${_lang} )
+ endif()
+endforeach()