summaryrefslogtreecommitdiffstats
path: root/CMakeL10n.txt
blob: 6d0dcb8285c69fff38eb21594708622ca9d1c5ff (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#################################################
#
#  (C) 2018 Slávek Banko
#  slavek.banko (AT) axis.cz
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

cmake_minimum_required( VERSION 3.1 )


##### include our cmake modules #################

include( TDEL10n )


##### set directory for POT files ###############

set( POT_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../k3b-i18n/template/messages" )


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

tde_l10n_auto_add_subdirectories( )


file( GLOB_RECURSE src_desktops
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    src/*.desktop
    src/*.protocol
    src/*.theme
)
list( SORT src_desktops )

file( GLOB_RECURSE plugins_desktops
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    plugins/*.plugin
    tdefile-plugins/*.desktop
    tdeioslaves/*.desktop
    tdeioslaves/*.protocol
)
foreach( plugin_desktop IN LISTS plugins_desktops )
    if ( "${plugin_desktop}" MATCHES "/skeleton.plugin" )
       list( REMOVE_ITEM plugins_desktops "${plugin_desktop}" )
    endif()
endforeach()
list( SORT plugins_desktops )

file( GLOB_RECURSE k3bsetup_desktops
    RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    k3bsetup/*.desktop
)
list( SORT k3bsetup_desktops )

tde_l10n_create_template(
    CATALOG "desktop_files/k3b-desktops"
    SOURCES_DESKTOP
        ${src_desktops}
        ${plugins_desktops}
        ${k3bsetup_desktops}
    DESTINATION "${CMAKE_SOURCE_DIR}/translations"
)