blob: e94d7b7a138fd352929fb6b44005e742122e6955 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
##### upate TIMEZONES ###########################
if( EXISTS /usr/share/zoneinfo/zone.tab )
message( STATUS "Update TIMEZONES list from system zone table" )
unset( _zone_list )
file( STRINGS /usr/share/zoneinfo/zone.tab _zone_tab REGEX "^[^#]" )
foreach( _zone_line ${_zone_tab} )
string( REGEX REPLACE "[ \t]+" ";" _zone_line ${_zone_line} )
if( "${_zone_line}" MATCHES ".*;.*;.*" )
list( GET _zone_line 2 _zone_name )
list( APPEND _zone_list ${_zone_name} )
endif( )
endforeach( )
list( SORT _zone_list )
file( WRITE ${CMAKE_CURRENT_SOURCE_DIR}/TIMEZONES "" )
foreach( _zone_name ${_zone_list} )
file( APPEND ${CMAKE_CURRENT_SOURCE_DIR}/TIMEZONES "i18n(\"${_zone_name}\");\n" )
endforeach( )
endif( )
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "kcmlocale"
KEYWORDS translate
)
tde_l10n_create_template(
CATALOG "timezones"
SOURCES "TIMEZONES"
DESTINATION "${POT_SOURCE_DIR}/../tdelibs"
)
|