From 4fe6ee9e7fc05c70f96afbc4d1f1d5030877d2ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 25 Dec 2018 19:59:04 +0100 Subject: Add CMakeL10n rules. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- kregexpeditor/CMakeL10n.txt | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 kregexpeditor/CMakeL10n.txt (limited to 'kregexpeditor') diff --git a/kregexpeditor/CMakeL10n.txt b/kregexpeditor/CMakeL10n.txt new file mode 100644 index 0000000..1265736 --- /dev/null +++ b/kregexpeditor/CMakeL10n.txt @@ -0,0 +1,24 @@ +##### prepare predefined regexps ################ + +file( GLOB_RECURSE _regexp_files + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/*.regexp +) +list( SORT _regexp_files ) +unset( _regexp_l10n ) +foreach( _regexp_file ${_regexp_files} ) + tde_l10n_prepare_xml( + SOURCE ${_regexp_file} + TAGS "Title" "Description" + C_FORMAT + ) + list( APPEND _regexp_l10n "${_regexp_file}.tde_l10n" ) +endforeach( ) + + +##### create translation templates ############## + +tde_l10n_create_template( + CATALOG "kregexpeditor" + SOURCES "." ${_regexp_l10n} +) -- cgit v1.2.1