summaryrefslogtreecommitdiffstats
path: root/kspread/CMakeL10n.txt
diff options
context:
space:
mode:
Diffstat (limited to 'kspread/CMakeL10n.txt')
-rw-r--r--kspread/CMakeL10n.txt29
1 files changed, 29 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( )