summaryrefslogtreecommitdiffstats
path: root/kcontrol/kicker/CMakeL10n.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2018-12-09 04:00:36 +0100
committerSlávek Banko <[email protected]>2018-12-09 16:45:28 +0100
commitc0bebcf76b3162137d5d5ef1d8bf441802c9e653 (patch)
tree1d457aa6164d1f6d72be71ebdd58916f047f8888 /kcontrol/kicker/CMakeL10n.txt
parent2c7795c2c73cc4dd6cb1d1563e3d00e7119bcbf5 (diff)
downloadtdebase-c0bebcf76b3162137d5d5ef1d8bf441802c9e653.tar.gz
tdebase-c0bebcf76b3162137d5d5ef1d8bf441802c9e653.zip
Add CMakeL10n rules.
Update TIMEZONES list. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit b95b665c78a047fc540e2bc4a8c19be6db03b825)
Diffstat (limited to 'kcontrol/kicker/CMakeL10n.txt')
-rw-r--r--kcontrol/kicker/CMakeL10n.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/kcontrol/kicker/CMakeL10n.txt b/kcontrol/kicker/CMakeL10n.txt
new file mode 100644
index 000000000..b26d74785
--- /dev/null
+++ b/kcontrol/kicker/CMakeL10n.txt
@@ -0,0 +1,28 @@
+##### prepare list of kicker tiles ##############
+
+file( GLOB _kicker_tile_files
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/../../kicker/data/tiles
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../kicker/data/tiles/*_tiny_up.png
+)
+list( SORT _kicker_tile_files )
+file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/tiles.tde_l10n "" )
+foreach( _kicker_tile_file ${_kicker_tile_files} )
+ string( REGEX REPLACE "_tiny_up\\.png$" "" _kicker_tile ${_kicker_tile_file} )
+ string( REGEX REPLACE "[_ ]+" ";" _kicker_tile ${_kicker_tile} )
+ unset( _kicker_tile_name )
+ foreach( _kicker_tile_part ${_kicker_tile} )
+ string( SUBSTRING ${_kicker_tile_part} 0 1 _kicker_tile_first )
+ string( SUBSTRING ${_kicker_tile_part} 1 -1 _kicker_tile_rest )
+ string( TOUPPER ${_kicker_tile_first} _kicker_tile_first )
+ set( _kicker_tile_name "${_kicker_tile_name}${_kicker_tile_first}${_kicker_tile_rest} " )
+ endforeach( )
+ string( STRIP ${_kicker_tile_name} _kicker_tile_name )
+ file( APPEND ${CMAKE_CURRENT_SOURCE_DIR}/tiles.tde_l10n "i18n(\"${_kicker_tile_name}\");\n" )
+endforeach( )
+
+
+##### create translation templates ##############
+tde_l10n_create_template(
+ CATALOG "kcmkicker"
+ SOURCES "." "tiles.tde_l10n"
+)