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 01:20:05 +0100 |
commit | 8147f97196ea169d6ce1de58ebdaa85e0569ea23 (patch) | |
tree | 81b34c6bdabaeacdffb4a9f052ed17ebc18efb20 /kspread | |
parent | 36ea4eb8742d580b59849824d9075929ff26d001 (diff) | |
download | koffice-8147f97196ea169d6ce1de58ebdaa85e0569ea23.tar.gz koffice-8147f97196ea169d6ce1de58ebdaa85e0569ea23.zip |
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 60f97e3b91c86febc249259183c57399a7c6b528)
Diffstat (limited to 'kspread')
-rw-r--r-- | kspread/CMakeL10n.txt | 29 | ||||
-rw-r--r-- | kspread/plugins/CMakeL10n.txt | 3 | ||||
-rw-r--r-- | kspread/plugins/calculator/CMakeL10n.txt | 3 | ||||
-rw-r--r-- | kspread/plugins/insertcalendar/CMakeL10n.txt | 3 |
4 files changed, 38 insertions, 0 deletions
diff --git a/kspread/CMakeL10n.txt b/kspread/CMakeL10n.txt new file mode 100644 index 00000000..c53d930f --- /dev/null +++ b/kspread/CMakeL10n.txt @@ -0,0 +1,29 @@ +##### prepare strings from data files ########### + +file( GLOB_RECURSE _kspread_data_files + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/extensions/*.xml +) +list( SORT _kspread_data_files ) +unset( _kspread_data_l10n ) +foreach( _kspread_file ${_kspread_data_files} ) + tde_l10n_prepare_xml( + SOURCE ${_kspread_file} + TAGS "Example" "GroupName" "Text" "Comment" "Syntax" "TypeName" + ) + list( APPEND _kspread_data_l10n "${_kspread_file}.tde_l10n" ) +endforeach( ) + + +##### create translation templates ############## + +tde_l10n_create_template( + CATALOG "kspread" + SOURCES + "." + ${_kspread_data_l10n} + EXCLUDES + "^plugins/" +) + +tde_l10n_auto_add_subdirectories( ) diff --git a/kspread/plugins/CMakeL10n.txt b/kspread/plugins/CMakeL10n.txt new file mode 100644 index 00000000..b585ce4a --- /dev/null +++ b/kspread/plugins/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_auto_add_subdirectories( ) diff --git a/kspread/plugins/calculator/CMakeL10n.txt b/kspread/plugins/calculator/CMakeL10n.txt new file mode 100644 index 00000000..d93fae61 --- /dev/null +++ b/kspread/plugins/calculator/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_create_template( "kspreadcalc_calc" ) diff --git a/kspread/plugins/insertcalendar/CMakeL10n.txt b/kspread/plugins/insertcalendar/CMakeL10n.txt new file mode 100644 index 00000000..a906118b --- /dev/null +++ b/kspread/plugins/insertcalendar/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_create_template( "kspreadinsertcalendar" ) |