blob: 4ccb2a6be55f8086c28c6e4895f39a7dab509e20 (
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
|
##### prepare strings from data files ###########
unset( _kivio_data_l10n )
file( GLOB_RECURSE _kivio_data_files
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/*.shape
)
list( SORT _kivio_data_files )
foreach( _kivio_file ${_kivio_data_files} )
tde_l10n_prepare_xml(
SOURCE "${_kivio_file}"
CONTEXT "Stencils"
TAGS "name"
)
list( APPEND _kivio_data_l10n "${_kivio_file}.tde_l10n" )
endforeach( )
##### create translation templates ##############
tde_l10n_create_template(
CATALOG "kivio"
SOURCES
"."
${_kivio_data_l10n}
ATTRIBUTES
"desc:Title,data,Stencils:Description,data,Stencils"
"*.sml:Title,data,Stencils:Description,data,Stencils"
)
|