summaryrefslogtreecommitdiffstats
path: root/kopete/CMakeL10n.txt
blob: 98a7c3d0a8fb7b7f515260046465f5edea17d8a9 (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
##### prepare styles XSL files ##################

file( GLOB_RECURSE _styles_xsl
      RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
      ${CMAKE_CURRENT_SOURCE_DIR}/styles/*.xsl
)
foreach( _style_xsl ${_styles_xsl} )
    tde_l10n_prepare_xml(
        SOURCE ${_style_xsl}
        TAGS "kopete-i18n"
        CONTEXT "Translators: The %FOO% placeholders are variables that are substituted in the code, please leave them untranslated"
    )
    list( REMOVE_ITEM _styles_xsl "${_style_xsl}" )
    list( APPEND _styles_xsl "${_style_xsl}.tde_l10n" )
endforeach( )


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

tde_l10n_create_template(
    CATALOG "kopete"
    SOURCES "." ${_styles_xsl}
    EXCLUDES
        "^libkopete/compat/"
        "^protocols/testbed/"
        "^styles/.*\\\\.xsl$"
)

tde_l10n_auto_add_subdirectories( )

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

tde_l10n_create_template(
    CATALOG "desktop_files/kopete-eventsrc/"
    SOURCES kopete/eventsrc
    DESTINATION "${CMAKE_SOURCE_DIR}/translations"
)