Update translation template. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>pull/3/head
parent
3125d85ba7
commit
3bf59c97e2
@ -0,0 +1,23 @@
|
||||
#################################################
|
||||
#
|
||||
# (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 2.8 )
|
||||
|
||||
|
||||
##### include our cmake modules #################
|
||||
|
||||
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
|
||||
include( TDEL10n )
|
||||
|
||||
|
||||
##### create translation templates ##############
|
||||
|
||||
tde_l10n_auto_add_subdirectories( )
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,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\$"
|
||||
)
|
Loading…
Reference in new issue