summaryrefslogtreecommitdiffstats
path: root/po/CMakeLists.txt
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2019-02-14 15:44:24 +0100
committerSlávek Banko <[email protected]>2019-02-17 12:51:34 +0100
commit664a1607314023d497531dca30618eb6e32efd65 (patch)
treecdc633cffd13e487a3c16bed2f9d52607d82674f /po/CMakeLists.txt
parentdcd4d75b33f14331c72c1ce9ea551f9d2e48218c (diff)
downloadkatapult-664a1607314023d497531dca30618eb6e32efd65.tar.gz
katapult-664a1607314023d497531dca30618eb6e32efd65.zip
conversion to the cmake building system
Signed-off-by: gregory guy <[email protected]> (cherry picked from commit 7a10077e8260148faa37d5a91e76135e1341e4c1)
Diffstat (limited to 'po/CMakeLists.txt')
-rw-r--r--po/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt
new file mode 100644
index 0000000..e3b5278
--- /dev/null
+++ b/po/CMakeLists.txt
@@ -0,0 +1,7 @@
+file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_NAME}.po )
+
+foreach( _po ${po_files} )
+ string( REPLACE "/" ";" _path "${_po}" )
+ list( GET _path 0 _lang )
+ tde_create_translation( FILES ${_po} LANG ${_lang} )
+endforeach( )