summaryrefslogtreecommitdiffstats
path: root/src/CMakeL10n.txt
blob: 0a39ac090d1a06c1400f24bd565b902da2b2c721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
##### prepare svnfrontend/svnactions.cpp ########

file( READ "${CMAKE_CURRENT_SOURCE_DIR}/svnfrontend/svnactions.cpp" _svnactions_file )
string( REGEX REPLACE
    "(^|\n)(#define) ([^\n]*)i18n\\("
    "\\1/*\\2*/ \\3i18n("
    _svnactions_l10n "${_svnactions_file}"
)
file( WRITE "${CMAKE_CURRENT_SOURCE_DIR}/svnfrontend/svnactions.cpp.tde_l10n" "${_svnactions_l10n}" )


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

tde_l10n_create_template(
    CATALOG "tdesvn"
    SOURCES
        "."
        "svnfrontend/svnactions.cpp.tde_l10n"
    EXCLUDES
        "^svnfrontend/svnactions\\\\.cpp\$"
)