summaryrefslogtreecommitdiffstats
path: root/kregexpeditor/CMakeL10n.txt
blob: f8273f7e87934edb74290cd6e3e9760f96330cd8 (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
##### prepare predefined regexps ################

file( GLOB_RECURSE _regexp_files
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/*.regexp
)
list( SORT _regexp_files )
unset( _regexp_l10n )
foreach( _regexp_file ${_regexp_files} )
    tde_l10n_prepare_xml(
        SOURCE ${_regexp_file}
        TAGS "Title" "Description"
        C_FORMAT
    )
    list( APPEND _regexp_l10n "${_regexp_file}.tde_l10n" )
endforeach( )


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

tde_l10n_create_template(
    CATALOG "kregexpeditor"
    SOURCES "." ${_regexp_l10n}
)

tde_l10n_create_template(
    CATALOG "desktop_files/kregexpeditor-desktops/"
    SOURCES *.desktop
    DESTINATION "${CMAKE_SOURCE_DIR}/translations"
)