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 --- kword/CMakeL10n.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 kword/CMakeL10n.txt (limited to 'kword/CMakeL10n.txt') diff --git a/kword/CMakeL10n.txt b/kword/CMakeL10n.txt new file mode 100644 index 00000000..59396ccb --- /dev/null +++ b/kword/CMakeL10n.txt @@ -0,0 +1,27 @@ +##### prepare strings from data files ########### + +file( GLOB_RECURSE _kword_data_files + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/expression/*.xml +) +list( SORT _kword_data_files ) +unset( _kword_data_l10n ) +foreach( _kword_file ${_kword_data_files} ) + tde_l10n_prepare_xml( + SOURCE ${_kword_file} + TAGS "Example" "GroupName" "Text" "Comment" "Syntax" "TypeName" + ) + list( APPEND _kword_data_l10n "${_kword_file}.tde_l10n" ) +endforeach( ) + + +##### create translation templates ############## + +tde_l10n_create_template( + CATALOG "kword" + SOURCES + "." + ${_kword_data_l10n} +) + +tde_l10n_auto_add_subdirectories( ) -- cgit v1.2.1