From 3197459242b128752ce6eef11330d6b9aa913591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 28 Dec 2018 12:10:29 +0100 Subject: Add CMakeL10n rules. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeL10n.txt | 28 ++++++++++++++++++++++++++++ atlantik/CMakeL10n.txt | 6 ++++++ kasteroids/CMakeL10n.txt | 3 +++ katomic/CMakeL10n.txt | 28 ++++++++++++++++++++++++++++ kbackgammon/CMakeL10n.txt | 3 +++ kbattleship/CMakeL10n.txt | 3 +++ kbattleship/kbattleship/CMakeL10n.txt | 3 +++ kblackbox/CMakeL10n.txt | 3 +++ kbounce/CMakeL10n.txt | 3 +++ kenolaba/CMakeL10n.txt | 3 +++ kfouleggs/CMakeL10n.txt | 3 +++ kgoldrunner/CMakeL10n.txt | 3 +++ kgoldrunner/src/CMakeL10n.txt | 3 +++ kjumpingcube/CMakeL10n.txt | 3 +++ klickety/CMakeL10n.txt | 3 +++ klines/CMakeL10n.txt | 3 +++ kmahjongg/CMakeL10n.txt | 3 +++ kmines/CMakeL10n.txt | 3 +++ knetwalk/CMakeL10n.txt | 3 +++ knetwalk/src/CMakeL10n.txt | 3 +++ kolf/CMakeL10n.txt | 3 +++ konquest/CMakeL10n.txt | 3 +++ kpat/CMakeL10n.txt | 3 +++ kpoker/CMakeL10n.txt | 3 +++ kreversi/CMakeL10n.txt | 3 +++ ksame/CMakeL10n.txt | 3 +++ kshisen/CMakeL10n.txt | 3 +++ ksirtet/CMakeL10n.txt | 3 +++ ksirtet/ksirtet/CMakeL10n.txt | 3 +++ ksmiletris/CMakeL10n.txt | 3 +++ ksnake/CMakeL10n.txt | 3 +++ ksokoban/CMakeL10n.txt | 3 +++ kspaceduel/CMakeL10n.txt | 3 +++ ktron/CMakeL10n.txt | 3 +++ ktuberling/CMakeL10n.txt | 17 +++++++++++++++++ libksirtet/CMakeL10n.txt | 3 +++ libtdegames/CMakeL10n.txt | 3 +++ lskat/CMakeL10n.txt | 3 +++ lskat/lskat/CMakeL10n.txt | 3 +++ twin4/CMakeL10n.txt | 3 +++ twin4/twin4/CMakeL10n.txt | 3 +++ 41 files changed, 190 insertions(+) create mode 100644 CMakeL10n.txt create mode 100644 atlantik/CMakeL10n.txt create mode 100644 kasteroids/CMakeL10n.txt create mode 100644 katomic/CMakeL10n.txt create mode 100644 kbackgammon/CMakeL10n.txt create mode 100644 kbattleship/CMakeL10n.txt create mode 100644 kbattleship/kbattleship/CMakeL10n.txt create mode 100644 kblackbox/CMakeL10n.txt create mode 100644 kbounce/CMakeL10n.txt create mode 100644 kenolaba/CMakeL10n.txt create mode 100644 kfouleggs/CMakeL10n.txt create mode 100644 kgoldrunner/CMakeL10n.txt create mode 100644 kgoldrunner/src/CMakeL10n.txt create mode 100644 kjumpingcube/CMakeL10n.txt create mode 100644 klickety/CMakeL10n.txt create mode 100644 klines/CMakeL10n.txt create mode 100644 kmahjongg/CMakeL10n.txt create mode 100644 kmines/CMakeL10n.txt create mode 100644 knetwalk/CMakeL10n.txt create mode 100644 knetwalk/src/CMakeL10n.txt create mode 100644 kolf/CMakeL10n.txt create mode 100644 konquest/CMakeL10n.txt create mode 100644 kpat/CMakeL10n.txt create mode 100644 kpoker/CMakeL10n.txt create mode 100644 kreversi/CMakeL10n.txt create mode 100644 ksame/CMakeL10n.txt create mode 100644 kshisen/CMakeL10n.txt create mode 100644 ksirtet/CMakeL10n.txt create mode 100644 ksirtet/ksirtet/CMakeL10n.txt create mode 100644 ksmiletris/CMakeL10n.txt create mode 100644 ksnake/CMakeL10n.txt create mode 100644 ksokoban/CMakeL10n.txt create mode 100644 kspaceduel/CMakeL10n.txt create mode 100644 ktron/CMakeL10n.txt create mode 100644 ktuberling/CMakeL10n.txt create mode 100644 libksirtet/CMakeL10n.txt create mode 100644 libtdegames/CMakeL10n.txt create mode 100644 lskat/CMakeL10n.txt create mode 100644 lskat/lskat/CMakeL10n.txt create mode 100644 twin4/CMakeL10n.txt create mode 100644 twin4/twin4/CMakeL10n.txt 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" ) -- cgit v1.2.1