Add CMakeL10n rules.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 3197459242)
r14.0.x
Slávek Banko 6 years ago
parent 3a5f149dbf
commit bea32b99e3
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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()

@ -0,0 +1,6 @@
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "atlantik"
EXCLUDES "^tdeio_atlantik/"
)

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

@ -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}
)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -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"
)

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

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

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

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

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

@ -0,0 +1,3 @@
##### create translation templates ##############
tde_l10n_create_template( "twin4" )
Loading…
Cancel
Save