summaryrefslogtreecommitdiffstats
path: root/kaddressbook
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-15 19:45:28 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-15 19:45:31 +0100
commit72b5adf49ccd012414f2758e0427639ee926e9b2 (patch)
tree1771b2fd3f08c600679fbf60ebb80dd1e7ae57eb /kaddressbook
parent1a74f3754c4f264525174b20baa58968cf93726f (diff)
downloadtdepim-72b5adf49ccd012414f2758e0427639ee926e9b2.tar.gz
tdepim-72b5adf49ccd012414f2758e0427639ee926e9b2.zip
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kaddressbook')
-rw-r--r--kaddressbook/CMakeL10n.txt27
-rw-r--r--kaddressbook/kcmconfigs/CMakeL10n.txt3
2 files changed, 30 insertions, 0 deletions
diff --git a/kaddressbook/CMakeL10n.txt b/kaddressbook/CMakeL10n.txt
new file mode 100644
index 000000000..15dabc2e2
--- /dev/null
+++ b/kaddressbook/CMakeL10n.txt
@@ -0,0 +1,27 @@
+##### prepare editors UI files ##################
+
+file( GLOB_RECURSE _editors_ui
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/editors/*.ui
+)
+foreach( _editor_ui ${_editors_ui} )
+ tde_l10n_prepare_xml(
+ SOURCE ${_editor_ui}
+ CONTEXT "Instant messaging"
+ )
+ list( REMOVE_ITEM _editors_ui "${_editor_ui}" )
+ list( APPEND _editors_ui "${_editor_ui}.tde_l10n" )
+endforeach( )
+
+
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "kaddressbook"
+ SOURCES "." ${_editors_ui}
+ EXCLUDES
+ "^editors/.*\\\\.ui$"
+ "^kcmconfigs/"
+)
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/kaddressbook/kcmconfigs/CMakeL10n.txt b/kaddressbook/kcmconfigs/CMakeL10n.txt
new file mode 100644
index 000000000..c2a9831f3
--- /dev/null
+++ b/kaddressbook/kcmconfigs/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kcmkabconfig" )