Browse Source

Add CMakeL10n rules.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/3/head
Slávek Banko 1 year ago
parent
commit
3197459242
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
41 changed files with 190 additions and 0 deletions
  1. +28
    -0
      CMakeL10n.txt
  2. +6
    -0
      atlantik/CMakeL10n.txt
  3. +3
    -0
      kasteroids/CMakeL10n.txt
  4. +28
    -0
      katomic/CMakeL10n.txt
  5. +3
    -0
      kbackgammon/CMakeL10n.txt
  6. +3
    -0
      kbattleship/CMakeL10n.txt
  7. +3
    -0
      kbattleship/kbattleship/CMakeL10n.txt
  8. +3
    -0
      kblackbox/CMakeL10n.txt
  9. +3
    -0
      kbounce/CMakeL10n.txt
  10. +3
    -0
      kenolaba/CMakeL10n.txt
  11. +3
    -0
      kfouleggs/CMakeL10n.txt
  12. +3
    -0
      kgoldrunner/CMakeL10n.txt
  13. +3
    -0
      kgoldrunner/src/CMakeL10n.txt
  14. +3
    -0
      kjumpingcube/CMakeL10n.txt
  15. +3
    -0
      klickety/CMakeL10n.txt
  16. +3
    -0
      klines/CMakeL10n.txt
  17. +3
    -0
      kmahjongg/CMakeL10n.txt
  18. +3
    -0
      kmines/CMakeL10n.txt
  19. +3
    -0
      knetwalk/CMakeL10n.txt
  20. +3
    -0
      knetwalk/src/CMakeL10n.txt
  21. +3
    -0
      kolf/CMakeL10n.txt
  22. +3
    -0
      konquest/CMakeL10n.txt
  23. +3
    -0
      kpat/CMakeL10n.txt
  24. +3
    -0
      kpoker/CMakeL10n.txt
  25. +3
    -0
      kreversi/CMakeL10n.txt
  26. +3
    -0
      ksame/CMakeL10n.txt
  27. +3
    -0
      kshisen/CMakeL10n.txt
  28. +3
    -0
      ksirtet/CMakeL10n.txt
  29. +3
    -0
      ksirtet/ksirtet/CMakeL10n.txt
  30. +3
    -0
      ksmiletris/CMakeL10n.txt
  31. +3
    -0
      ksnake/CMakeL10n.txt
  32. +3
    -0
      ksokoban/CMakeL10n.txt
  33. +3
    -0
      kspaceduel/CMakeL10n.txt
  34. +3
    -0
      ktron/CMakeL10n.txt
  35. +17
    -0
      ktuberling/CMakeL10n.txt
  36. +3
    -0
      libksirtet/CMakeL10n.txt
  37. +3
    -0
      libtdegames/CMakeL10n.txt
  38. +3
    -0
      lskat/CMakeL10n.txt
  39. +3
    -0
      lskat/lskat/CMakeL10n.txt
  40. +3
    -0
      twin4/CMakeL10n.txt
  41. +3
    -0
      twin4/twin4/CMakeL10n.txt

+ 28
- 0
CMakeL10n.txt View File

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

+ 6
- 0
atlantik/CMakeL10n.txt View File

@@ -0,0 +1,6 @@
##### create translation templates ##############

tde_l10n_create_template(
CATALOG "atlantik"
EXCLUDES "^tdeio_atlantik/"
)

+ 3
- 0
kasteroids/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kasteroids" )

+ 28
- 0
katomic/CMakeL10n.txt View File

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

+ 3
- 0
kbackgammon/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kbackgammon" )

+ 3
- 0
kbattleship/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_auto_add_subdirectories( )

+ 3
- 0
kbattleship/kbattleship/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kbattleship" )

+ 3
- 0
kblackbox/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kblackbox" )

+ 3
- 0
kbounce/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kbounce" )

+ 3
- 0
kenolaba/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kenolaba" )

+ 3
- 0
kfouleggs/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kfouleggs" )

+ 3
- 0
kgoldrunner/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_auto_add_subdirectories( )

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

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kgoldrunner" )

+ 3
- 0
kjumpingcube/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kjumpingcube" )

+ 3
- 0
klickety/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "klickety" )

+ 3
- 0
klines/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "klines" )

+ 3
- 0
kmahjongg/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kmahjongg" )

+ 3
- 0
kmines/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kmines" )

+ 3
- 0
knetwalk/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_auto_add_subdirectories( )

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

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "knetwalk" )

+ 3
- 0
kolf/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kolf" )

+ 3
- 0
konquest/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "konquest" )

+ 3
- 0
kpat/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kpat" )

+ 3
- 0
kpoker/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kpoker" )

+ 3
- 0
kreversi/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kreversi" )

+ 3
- 0
ksame/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "ksame" )

+ 3
- 0
kshisen/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kshisen" )

+ 3
- 0
ksirtet/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_auto_add_subdirectories( )

+ 3
- 0
ksirtet/ksirtet/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "ksirtet" )

+ 3
- 0
ksmiletris/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "ksmiletris" )

+ 3
- 0
ksnake/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "ksnake" )

+ 3
- 0
ksokoban/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "ksokoban" )

+ 3
- 0
kspaceduel/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "kspaceduel" )

+ 3
- 0
ktron/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "ktron" )

+ 17
- 0
ktuberling/CMakeL10n.txt View File

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

+ 3
- 0
libksirtet/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "libksirtet" )

+ 3
- 0
libtdegames/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "libtdegames" )

+ 3
- 0
lskat/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_auto_add_subdirectories( )

+ 3
- 0
lskat/lskat/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "lskat" )

+ 3
- 0
twin4/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_auto_add_subdirectories( )

+ 3
- 0
twin4/twin4/CMakeL10n.txt View File

@@ -0,0 +1,3 @@
##### create translation templates ##############

tde_l10n_create_template( "twin4" )

Loading…
Cancel
Save