summaryrefslogtreecommitdiffstats
path: root/kword/CMakeL10n.txt
blob: 59396ccb8d737d091f9d3b83b7cf364ed8ad0907 (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
##### prepare strings from data files ###########

file( GLOB_RECURSE _kword_data_files
      RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
      ${CMAKE_CURRENT_SOURCE_DIR}/expression/*.xml
)
list( SORT _kword_data_files )
unset( _kword_data_l10n )
foreach( _kword_file ${_kword_data_files} )
    tde_l10n_prepare_xml(
        SOURCE ${_kword_file}
        TAGS "Example" "GroupName" "Text" "Comment" "Syntax" "TypeName"
    )
    list( APPEND _kword_data_l10n "${_kword_file}.tde_l10n" )
endforeach( )


##### create translation templates ##############

tde_l10n_create_template(
    CATALOG "kword"
    SOURCES
        "."
        ${_kword_data_l10n}
)

tde_l10n_auto_add_subdirectories( )