From 2e4e81b25e17309dadfcbce6cda68a0bf9516305 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Tue, 17 Aug 2021 13:06:41 +0200 Subject: Conversion to the cmake building system. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gregory guy some fixes and improvements. Signed-off-by: Slávek Banko --- po/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 po/CMakeLists.txt (limited to 'po') 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() -- cgit v1.2.1