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:10:30 +0100
commit3197459242b128752ce6eef11330d6b9aa913591 (patch)
treec01a5372a69cb64ad8ee91570f5bbadc45c4c249
parent84aad3784917007bd90a615a7077c70ea0895f71 (diff)
downloadtdegames-3197459242b128752ce6eef11330d6b9aa913591.zip
tdegames-3197459242b128752ce6eef11330d6b9aa913591.tar.gz
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-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 0000000..af9aee2
--- /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 0000000..02b92b1
--- /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 0000000..fa31568
--- /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 0000000..75c535f
--- /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 0000000..753f15e
--- /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 0000000..b585ce4
--- /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 0000000..4ddeaac
--- /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 0000000..68a62bd
--- /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 0000000..49d4c14
--- /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 0000000..018141a
--- /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 0000000..c2b7d2a
--- /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 0000000..b585ce4
--- /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 0000000..da0c318
--- /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 0000000..d3de8e6
--- /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 0000000..f638ef5
--- /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 0000000..7811771
--- /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 0000000..8ab468e
--- /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 0000000..0fc268b
--- /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 0000000..b585ce4
--- /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 0000000..e81a925
--- /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 0000000..cec2580
--- /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 0000000..cc42744
--- /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 0000000..1de225c
--- /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 0000000..ed025d0
--- /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 0000000..b9882a6
--- /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 0000000..69b8dc6
--- /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 0000000..5b920a5
--- /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 0000000..b585ce4
--- /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 0000000..8f0a8e8
--- /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 0000000..f068bcf
--- /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 0000000..5ba012b
--- /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 0000000..bc58bca
--- /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 0000000..dd86c87
--- /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 0000000..ffc43ca
--- /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 0000000..1d3af55
--- /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 0000000..91618cc
--- /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 0000000..1ff9c7d
--- /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 0000000..b585ce4
--- /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 0000000..55f94a2
--- /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 0000000..b585ce4
--- /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 0000000..a9cd1d6
--- /dev/null
+++ b/twin4/twin4/CMakeL10n.txt
@@ -0,0 +1,3 @@
+##### create translation templates ##############
+
+tde_l10n_create_template( "twin4" )