blob: 9c7ef6b307d7469d2a734b688caa7f575407034a (
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
|
##### 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( )
tde_l10n_create_template(
CATALOG "desktop_files/kaddressbook-desktops/"
SOURCES *.desktop
DESTINATION "${CMAKE_SOURCE_DIR}/translations"
)
|