Browse Source

Add CMakeL10n rules.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/8/head
Slávek Banko 6 months ago
parent
commit
ba6db0daa9

+ 28
- 0
CMakeL10n.txt View File

@@ -0,0 +1,28 @@
1
+#################################################
2
+#
3
+#  (C) 2018 Slávek Banko
4
+#  slavek.banko (AT) axis.cz
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+cmake_minimum_required( VERSION 2.8 )
13
+
14
+
15
+##### include our cmake modules #################
16
+
17
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
18
+include( TDEL10n )
19
+
20
+
21
+##### set directory for POT files ###############
22
+
23
+set( POT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../tde-i18n/template/messages/tdenetwork" )
24
+
25
+
26
+##### create translation templates ##############
27
+
28
+tde_l10n_auto_add_subdirectories()

+ 3
- 0
dcoprss/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "dcoprss" )

+ 3
- 0
filesharing/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "tdefileshare" )

+ 8
- 0
kdict/CMakeL10n.txt View File

@@ -0,0 +1,8 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template(
4
+    CATALOG "kdict"
5
+    EXCLUDES "^applet/"
6
+)
7
+
8
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
kdict/applet/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "kdictapplet" )

+ 3
- 0
kget/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "kget" )

+ 3
- 0
knewsticker/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "knewsticker" )

+ 29
- 0
kopete/CMakeL10n.txt View File

@@ -0,0 +1,29 @@
1
+##### prepare styles XSL files ##################
2
+
3
+file( GLOB_RECURSE _styles_xsl
4
+      RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
5
+      ${CMAKE_CURRENT_SOURCE_DIR}/styles/*.xsl
6
+)
7
+foreach( _style_xsl ${_styles_xsl} )
8
+    tde_l10n_prepare_xml(
9
+        SOURCE ${_style_xsl}
10
+        TAGS "kopete-i18n"
11
+        CONTEXT "Translators: The %FOO% placeholders are variables that are substituted in the code, please leave them untranslated"
12
+    )
13
+    list( REMOVE_ITEM _styles_xsl "${_style_xsl}" )
14
+    list( APPEND _styles_xsl "${_style_xsl}.tde_l10n" )
15
+endforeach( )
16
+
17
+
18
+##### create translation templates ##############
19
+
20
+tde_l10n_create_template(
21
+    CATALOG "kopete"
22
+    SOURCES "." ${_styles_xsl}
23
+    EXCLUDES
24
+        "^libkopete/compat/"
25
+        "^protocols/testbed/"
26
+        "^styles/.*\\\\.xsl$"
27
+)
28
+
29
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
kopete/protocols/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
kopete/protocols/jabber/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
kopete/protocols/jabber/tdeioslave/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "tdeio_jabberdisco" )

+ 3
- 0
kpf/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_auto_add_subdirectories( "kpf" )

+ 3
- 0
kpf/src/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "kpf" )

+ 8
- 0
kppp/CMakeL10n.txt View File

@@ -0,0 +1,8 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template(
4
+    CATALOG "kppp"
5
+    EXCLUDES "^logview/"
6
+)
7
+
8
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
kppp/logview/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "kppplogview" )

+ 3
- 0
krdc/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "krdc" )

+ 10
- 0
krfb/CMakeL10n.txt View File

@@ -0,0 +1,10 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template(
4
+    CATALOG "krfb"
5
+    EXCLUDES
6
+        "^kcm_krfb/"
7
+        "^kinetd/"
8
+)
9
+
10
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
krfb/kcm_krfb/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "kcm_krfb" )

+ 3
- 0
krfb/kinetd/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "kinetd" )

+ 6
- 0
ksirc/CMakeL10n.txt View File

@@ -0,0 +1,6 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template(
4
+    CATALOG "ksirc"
5
+    EXCLUDES "^test/"
6
+)

+ 3
- 0
ktalkd/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "kcmktalkd" )

+ 3
- 0
lanbrowsing/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
lanbrowsing/kcmlisa/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "kcmlanbrowser" )

+ 3
- 0
lanbrowsing/tdeio_lan/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "tdeio_lan" )

+ 3
- 0
tdednssd/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
tdednssd/ioslave/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "tdeio_zeroconf" )

+ 3
- 0
tdefile-plugins/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
tdefile-plugins/torrent/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "tdefile_torrent" )

+ 10
- 0
wifi/CMakeL10n.txt View File

@@ -0,0 +1,10 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template(
4
+    CATALOG "kwifimanager"
5
+    EXCLUDES
6
+        "^kcmwifi/"
7
+        "^kwireless/"
8
+)
9
+
10
+tde_l10n_auto_add_subdirectories( )

+ 3
- 0
wifi/kcmwifi/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "kcmwifi" )

+ 3
- 0
wifi/kwireless/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
1
+##### create translation templates ##############
2
+
3
+tde_l10n_create_template( "kwireless" )

Loading…
Cancel
Save