diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-01-08 00:06:00 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-01-08 00:06:24 +0100 |
commit | 60f97e3b91c86febc249259183c57399a7c6b528 (patch) | |
tree | 8f287ab561d513f07fa1e4be9f85d9a13945c2fc /kivio/CMakeL10n.txt | |
parent | b0e5b34cd37f263d79f9aaf1ba332e8b118de001 (diff) | |
download | koffice-60f97e3b91c86febc249259183c57399a7c6b528.tar.gz koffice-60f97e3b91c86febc249259183c57399a7c6b528.zip |
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kivio/CMakeL10n.txt')
-rw-r--r-- | kivio/CMakeL10n.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/kivio/CMakeL10n.txt b/kivio/CMakeL10n.txt new file mode 100644 index 00000000..4ccb2a6b --- /dev/null +++ b/kivio/CMakeL10n.txt @@ -0,0 +1,29 @@ +##### prepare strings from data files ########### + +unset( _kivio_data_l10n ) +file( GLOB_RECURSE _kivio_data_files + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/*.shape +) +list( SORT _kivio_data_files ) +foreach( _kivio_file ${_kivio_data_files} ) + tde_l10n_prepare_xml( + SOURCE "${_kivio_file}" + CONTEXT "Stencils" + TAGS "name" + ) + list( APPEND _kivio_data_l10n "${_kivio_file}.tde_l10n" ) +endforeach( ) + + +##### create translation templates ############## + +tde_l10n_create_template( + CATALOG "kivio" + SOURCES + "." + ${_kivio_data_l10n} + ATTRIBUTES + "desc:Title,data,Stencils:Description,data,Stencils" + "*.sml:Title,data,Stencils:Description,data,Stencils" +) |