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 /kspread | |
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 '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" ) |