summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-28 12:10:29 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-28 12:19:34 +0100
commitbea32b99e30fe1dcc3112174041da45da085e2f8 (patch)
treecafa60ca0d6a13982258582e24957043fe335d95
parent3a5f149dbfd6c3bba9ad4c4c768c2fcfd0b78d63 (diff)
downloadtdegames-bea32b99e30fe1dcc3112174041da45da085e2f8.tar.gz
tdegames-bea32b99e30fe1dcc3112174041da45da085e2f8.zip
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 3197459242b128752ce6eef11330d6b9aa913591)
-rw-r--r--CMakeL10n.txt28
-rw-r--r--atlantik/CMakeL10n.txt6
-rw-r--r--kasteroids/CMakeL10n.txt3
-rw-r--r--katomic/CMakeL10n.txt28
-rw-r--r--kbackgammon/CMakeL10n.txt3
-rw-r--r--kbattleship/CMakeL10n.txt3
-rw-r--r--kbattleship/kbattleship/CMakeL10n.txt3
-rw-r--r--kblackbox/CMakeL10n.txt3
-rw-r--r--kbounce/CMakeL10n.txt3
-rw-r--r--kenolaba/CMakeL10n.txt3
-rw-r--r--kfouleggs/CMakeL10n.txt3
-rw-r--r--kgoldrunner/CMakeL10n.txt3
-rw-r--r--kgoldrunner/src/CMakeL10n.txt3
-rw-r--r--kjumpingcube/CMakeL10n.txt3
-rw-r--r--klickety/CMakeL10n.txt3
-rw-r--r--klines/CMakeL10n.txt3
-rw-r--r--kmahjongg/CMakeL10n.txt3
-rw-r--r--kmines/CMakeL10n.txt3
-rw-r--r--knetwalk/CMakeL10n.txt3
-rw-r--r--knetwalk/src/CMakeL10n.txt3
-rw-r--r--kolf/CMakeL10n.txt3
-rw-r--r--konquest/CMakeL10n.txt3
-rw-r--r--kpat/CMakeL10n.txt3
-rw-r--r--kpoker/CMakeL10n.txt3
-rw-r--r--kreversi/CMakeL10n.txt3
-rw-r--r--ksame/CMakeL10n.txt3
-rw-r--r--kshisen/CMakeL10n.txt3
-rw-r--r--ksirtet/CMakeL10n.txt3
-rw-r--r--ksirtet/ksirtet/CMakeL10n.txt3
-rw-r--r--ksmiletris/CMakeL10n.txt3
-rw-r--r--ksnake/CMakeL10n.txt3
-rw-r--r--ksokoban/CMakeL10n.txt3
-rw-r--r--kspaceduel/CMakeL10n.txt3
-rw-r--r--ktron/CMakeL10n.txt3
-rw-r--r--ktuberling/CMakeL10n.txt17
-rw-r--r--libksirtet/CMakeL10n.txt3
-rw-r--r--libtdegames/CMakeL10n.txt3
-rw-r--r--lskat/CMakeL10n.txt3
-rw-r--r--lskat/lskat/CMakeL10n.txt3
-rw-r--r--twin4/CMakeL10n.txt3
-rw-r--r--twin4/twin4/CMakeL10n.txt3
41 files changed, 190 insertions, 0 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt
new file mode 100644
index 00000000..af9aee23
--- /dev/null
+++ b/CMakeL10n.txt
@@ -0,0 +1,28 @@
+#################################################
+#
+# (C) 2018 Slávek Banko
+# slavek.banko (AT) axis.cz
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+cmake_minimum_required( VERSION 2.8 )
+
+
+##### include our cmake modules #################
+
+set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
+include( TDEL10n )
+
+
+##### set directory for POT files ###############
+
+set( POT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../tde-i18n/template/messages/tdegames" )
+
+
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories()
diff --git a/atlantik/CMakeL10n.txt b/atlantik/CMakeL10n.txt
new file mode 100644
index 00000000..02b92b13
--- /dev/null
+++ b/atlantik/CMakeL10n.txt
@@ -0,0 +1,6 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "atlantik"
+ EXCLUDES "^tdeio_atlantik/"
+)
diff --git a/kasteroids/CMakeL10n.txt b/kasteroids/CMakeL10n.txt
new file mode 100644
index 00000000..fa315682
--- /dev/null
+++ b/kasteroids/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kasteroids" )
diff --git a/katomic/CMakeL10n.txt b/katomic/CMakeL10n.txt
new file mode 100644
index 00000000..75c535f3
--- /dev/null
+++ b/katomic/CMakeL10n.txt
@@ -0,0 +1,28 @@
+##### prepare level names #######################
+
+file( GLOB_RECURSE _level_files
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/levels/level_*
+)
+list( SORT _level_files )
+unset( _level_files_l10n )
+foreach( _level_file ${_level_files} )
+ file( READ "${CMAKE_CURRENT_SOURCE_DIR}/${_level_file}" _level_data )
+ string( REGEX REPLACE
+ "(^|\n)Name=([^\n]+)"
+ "\\1i18n(\"\\2\");"
+ _level_l10n "${_level_data}"
+ )
+ file( WRITE "${CMAKE_CURRENT_SOURCE_DIR}/${_level_file}.tde_l10n" "${_level_l10n}" )
+ list( APPEND _level_files_l10n "${_level_file}.tde_l10n" )
+endforeach( )
+
+
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "katomic"
+ SOURCES
+ "."
+ ${_level_files_l10n}
+)
diff --git a/kbackgammon/CMakeL10n.txt b/kbackgammon/CMakeL10n.txt
new file mode 100644
index 00000000..753f15ef
--- /dev/null
+++ b/kbackgammon/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kbackgammon" )
diff --git a/kbattleship/CMakeL10n.txt b/kbattleship/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/kbattleship/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/kbattleship/kbattleship/CMakeL10n.txt b/kbattleship/kbattleship/CMakeL10n.txt
new file mode 100644
index 00000000..4ddeaac5
--- /dev/null
+++ b/kbattleship/kbattleship/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kbattleship" )
diff --git a/kblackbox/CMakeL10n.txt b/kblackbox/CMakeL10n.txt
new file mode 100644
index 00000000..68a62bde
--- /dev/null
+++ b/kblackbox/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kblackbox" )
diff --git a/kbounce/CMakeL10n.txt b/kbounce/CMakeL10n.txt
new file mode 100644
index 00000000..49d4c146
--- /dev/null
+++ b/kbounce/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kbounce" )
diff --git a/kenolaba/CMakeL10n.txt b/kenolaba/CMakeL10n.txt
new file mode 100644
index 00000000..018141a9
--- /dev/null
+++ b/kenolaba/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kenolaba" )
diff --git a/kfouleggs/CMakeL10n.txt b/kfouleggs/CMakeL10n.txt
new file mode 100644
index 00000000..c2b7d2a4
--- /dev/null
+++ b/kfouleggs/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kfouleggs" )
diff --git a/kgoldrunner/CMakeL10n.txt b/kgoldrunner/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/kgoldrunner/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/kgoldrunner/src/CMakeL10n.txt b/kgoldrunner/src/CMakeL10n.txt
new file mode 100644
index 00000000..da0c3189
--- /dev/null
+++ b/kgoldrunner/src/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kgoldrunner" )
diff --git a/kjumpingcube/CMakeL10n.txt b/kjumpingcube/CMakeL10n.txt
new file mode 100644
index 00000000..d3de8e69
--- /dev/null
+++ b/kjumpingcube/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kjumpingcube" )
diff --git a/klickety/CMakeL10n.txt b/klickety/CMakeL10n.txt
new file mode 100644
index 00000000..f638ef59
--- /dev/null
+++ b/klickety/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "klickety" )
diff --git a/klines/CMakeL10n.txt b/klines/CMakeL10n.txt
new file mode 100644
index 00000000..78117710
--- /dev/null
+++ b/klines/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "klines" )
diff --git a/kmahjongg/CMakeL10n.txt b/kmahjongg/CMakeL10n.txt
new file mode 100644
index 00000000..8ab468e6
--- /dev/null
+++ b/kmahjongg/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kmahjongg" )
diff --git a/kmines/CMakeL10n.txt b/kmines/CMakeL10n.txt
new file mode 100644
index 00000000..0fc268bb
--- /dev/null
+++ b/kmines/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kmines" )
diff --git a/knetwalk/CMakeL10n.txt b/knetwalk/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/knetwalk/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/knetwalk/src/CMakeL10n.txt b/knetwalk/src/CMakeL10n.txt
new file mode 100644
index 00000000..e81a925d
--- /dev/null
+++ b/knetwalk/src/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "knetwalk" )
diff --git a/kolf/CMakeL10n.txt b/kolf/CMakeL10n.txt
new file mode 100644
index 00000000..cec25801
--- /dev/null
+++ b/kolf/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kolf" )
diff --git a/konquest/CMakeL10n.txt b/konquest/CMakeL10n.txt
new file mode 100644
index 00000000..cc427445
--- /dev/null
+++ b/konquest/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "konquest" )
diff --git a/kpat/CMakeL10n.txt b/kpat/CMakeL10n.txt
new file mode 100644
index 00000000..1de225ca
--- /dev/null
+++ b/kpat/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kpat" )
diff --git a/kpoker/CMakeL10n.txt b/kpoker/CMakeL10n.txt
new file mode 100644
index 00000000..ed025d0d
--- /dev/null
+++ b/kpoker/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kpoker" )
diff --git a/kreversi/CMakeL10n.txt b/kreversi/CMakeL10n.txt
new file mode 100644
index 00000000..b9882a6a
--- /dev/null
+++ b/kreversi/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kreversi" )
diff --git a/ksame/CMakeL10n.txt b/ksame/CMakeL10n.txt
new file mode 100644
index 00000000..69b8dc67
--- /dev/null
+++ b/ksame/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "ksame" )
diff --git a/kshisen/CMakeL10n.txt b/kshisen/CMakeL10n.txt
new file mode 100644
index 00000000..5b920a5a
--- /dev/null
+++ b/kshisen/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kshisen" )
diff --git a/ksirtet/CMakeL10n.txt b/ksirtet/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/ksirtet/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/ksirtet/ksirtet/CMakeL10n.txt b/ksirtet/ksirtet/CMakeL10n.txt
new file mode 100644
index 00000000..8f0a8e88
--- /dev/null
+++ b/ksirtet/ksirtet/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "ksirtet" )
diff --git a/ksmiletris/CMakeL10n.txt b/ksmiletris/CMakeL10n.txt
new file mode 100644
index 00000000..f068bcf3
--- /dev/null
+++ b/ksmiletris/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "ksmiletris" )
diff --git a/ksnake/CMakeL10n.txt b/ksnake/CMakeL10n.txt
new file mode 100644
index 00000000..5ba012be
--- /dev/null
+++ b/ksnake/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "ksnake" )
diff --git a/ksokoban/CMakeL10n.txt b/ksokoban/CMakeL10n.txt
new file mode 100644
index 00000000..bc58bcaf
--- /dev/null
+++ b/ksokoban/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "ksokoban" )
diff --git a/kspaceduel/CMakeL10n.txt b/kspaceduel/CMakeL10n.txt
new file mode 100644
index 00000000..dd86c871
--- /dev/null
+++ b/kspaceduel/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "kspaceduel" )
diff --git a/ktron/CMakeL10n.txt b/ktron/CMakeL10n.txt
new file mode 100644
index 00000000..ffc43ca7
--- /dev/null
+++ b/ktron/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "ktron" )
diff --git a/ktuberling/CMakeL10n.txt b/ktuberling/CMakeL10n.txt
new file mode 100644
index 00000000..1d3af55b
--- /dev/null
+++ b/ktuberling/CMakeL10n.txt
@@ -0,0 +1,17 @@
+##### prepare pics/layout.xml ###################
+
+tde_l10n_prepare_xml(
+ SOURCE "pics/layout.xml"
+ TAGS "label"
+)
+
+
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "ktuberling"
+ SOURCES
+ "."
+ "pics/layout.i18n"
+ "pics/layout.xml.tde_l10n"
+)
diff --git a/libksirtet/CMakeL10n.txt b/libksirtet/CMakeL10n.txt
new file mode 100644
index 00000000..91618cc5
--- /dev/null
+++ b/libksirtet/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "libksirtet" )
diff --git a/libtdegames/CMakeL10n.txt b/libtdegames/CMakeL10n.txt
new file mode 100644
index 00000000..1ff9c7d6
--- /dev/null
+++ b/libtdegames/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "libtdegames" )
diff --git a/lskat/CMakeL10n.txt b/lskat/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/lskat/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/lskat/lskat/CMakeL10n.txt b/lskat/lskat/CMakeL10n.txt
new file mode 100644
index 00000000..55f94a28
--- /dev/null
+++ b/lskat/lskat/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "lskat" )
diff --git a/twin4/CMakeL10n.txt b/twin4/CMakeL10n.txt
new file mode 100644
index 00000000..b585ce4a
--- /dev/null
+++ b/twin4/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_auto_add_subdirectories( )
diff --git a/twin4/twin4/CMakeL10n.txt b/twin4/twin4/CMakeL10n.txt
new file mode 100644
index 00000000..a9cd1d64
--- /dev/null
+++ b/twin4/twin4/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "twin4" )