diff options
author | Slávek Banko <[email protected]> | 2019-01-08 00:06:00 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-01-08 01:20:05 +0100 |
commit | 8147f97196ea169d6ce1de58ebdaa85e0569ea23 (patch) | |
tree | 81b34c6bdabaeacdffb4a9f052ed17ebc18efb20 /kword/CMakeL10n.txt | |
parent | 36ea4eb8742d580b59849824d9075929ff26d001 (diff) | |
download | koffice-8147f97196ea169d6ce1de58ebdaa85e0569ea23.tar.gz koffice-8147f97196ea169d6ce1de58ebdaa85e0569ea23.zip |
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 60f97e3b91c86febc249259183c57399a7c6b528)
Diffstat (limited to 'kword/CMakeL10n.txt')
-rw-r--r-- | kword/CMakeL10n.txt | 27 |
1 files changed, 27 insertions, 0 deletions
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( ) |