summaryrefslogtreecommitdiffstats
path: root/kaddressbook/CMakeL10n.txt
blob: 15dabc2e2e2f3f2bb1551ddb71fafdf17e8e7a4b (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 editors UI files ##################

file( GLOB_RECURSE _editors_ui
      RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
      ${CMAKE_CURRENT_SOURCE_DIR}/editors/*.ui
)
foreach( _editor_ui ${_editors_ui} )
    tde_l10n_prepare_xml(
        SOURCE ${_editor_ui}
        CONTEXT "Instant messaging"
    )
    list( REMOVE_ITEM _editors_ui "${_editor_ui}" )
    list( APPEND _editors_ui "${_editor_ui}.tde_l10n" )
endforeach( )


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

tde_l10n_create_template(
    CATALOG "kaddressbook"
    SOURCES "." ${_editors_ui}
    EXCLUDES
        "^editors/.*\\\\.ui$"
        "^kcmconfigs/"
)

tde_l10n_auto_add_subdirectories( )