diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2018-12-20 02:51:42 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2018-12-20 15:23:42 +0100 |
commit | 97f214b04a5daefc5cd54aa59144306d63b55e1c (patch) | |
tree | 224ce06033cafde0360d78efc7aae27bfadca0bf /kopete | |
parent | 97d7431a4bc6c2c71749001d568efe5a3e23db16 (diff) | |
download | tdenetwork-97f214b04a5daefc5cd54aa59144306d63b55e1c.tar.gz tdenetwork-97f214b04a5daefc5cd54aa59144306d63b55e1c.zip |
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit ba6db0daa96b932cb8a5cfe83ae1449c90c1b7f1)
Diffstat (limited to 'kopete')
-rw-r--r-- | kopete/CMakeL10n.txt | 29 | ||||
-rw-r--r-- | kopete/protocols/CMakeL10n.txt | 3 | ||||
-rw-r--r-- | kopete/protocols/jabber/CMakeL10n.txt | 3 | ||||
-rw-r--r-- | kopete/protocols/jabber/tdeioslave/CMakeL10n.txt | 3 |
4 files changed, 38 insertions, 0 deletions
diff --git a/kopete/CMakeL10n.txt b/kopete/CMakeL10n.txt new file mode 100644 index 00000000..fc613c39 --- /dev/null +++ b/kopete/CMakeL10n.txt @@ -0,0 +1,29 @@ +##### prepare styles XSL files ################## + +file( GLOB_RECURSE _styles_xsl + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/styles/*.xsl +) +foreach( _style_xsl ${_styles_xsl} ) + tde_l10n_prepare_xml( + SOURCE ${_style_xsl} + TAGS "kopete-i18n" + CONTEXT "Translators: The %FOO% placeholders are variables that are substituted in the code, please leave them untranslated" + ) + list( REMOVE_ITEM _styles_xsl "${_style_xsl}" ) + list( APPEND _styles_xsl "${_style_xsl}.tde_l10n" ) +endforeach( ) + + +##### create translation templates ############## + +tde_l10n_create_template( + CATALOG "kopete" + SOURCES "." ${_styles_xsl} + EXCLUDES + "^libkopete/compat/" + "^protocols/testbed/" + "^styles/.*\\\\.xsl$" +) + +tde_l10n_auto_add_subdirectories( ) diff --git a/kopete/protocols/CMakeL10n.txt b/kopete/protocols/CMakeL10n.txt new file mode 100644 index 00000000..b585ce4a --- /dev/null +++ b/kopete/protocols/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_auto_add_subdirectories( ) diff --git a/kopete/protocols/jabber/CMakeL10n.txt b/kopete/protocols/jabber/CMakeL10n.txt new file mode 100644 index 00000000..b585ce4a --- /dev/null +++ b/kopete/protocols/jabber/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_auto_add_subdirectories( ) diff --git a/kopete/protocols/jabber/tdeioslave/CMakeL10n.txt b/kopete/protocols/jabber/tdeioslave/CMakeL10n.txt new file mode 100644 index 00000000..cc3c4b07 --- /dev/null +++ b/kopete/protocols/jabber/tdeioslave/CMakeL10n.txt @@ -0,0 +1,3 @@ +##### create translation templates ############## + +tde_l10n_create_template( "tdeio_jabberdisco" ) |