diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-25 19:59:04 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-26 12:21:51 +0100 |
commit | 53d7a67610a8dc0397c1367e4e3fc1db664062bb (patch) | |
tree | 2a0fe9b5a37b858ebaf65aec97a09b110248bcce /kregexpeditor | |
parent | 938c5012fb59ef82218ae2f67283d8d94e0a92fb (diff) | |
download | tdeutils-53d7a67610a8dc0397c1367e4e3fc1db664062bb.tar.gz tdeutils-53d7a67610a8dc0397c1367e4e3fc1db664062bb.zip |
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 4fe6ee9e7fc05c70f96afbc4d1f1d5030877d2ba)
Diffstat (limited to 'kregexpeditor')
-rw-r--r-- | kregexpeditor/CMakeL10n.txt | 24 |
1 files changed, 24 insertions, 0 deletions
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} +) |