From 60f97e3b91c86febc249259183c57399a7c6b528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 8 Jan 2019 00:06:00 +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 --- kivio/CMakeL10n.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 kivio/CMakeL10n.txt (limited to 'kivio/CMakeL10n.txt') 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" +) -- cgit v1.2.1