summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-30 14:56:00 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-30 14:57:46 +0100
commit3bf59c97e24b56b23b67c6e482fb4682d8ebc1c0 (patch)
tree5cf3854d35bfc43b3f55d98cdca223a803ff36b1 /src
parent3125d85ba7f54101c02fe677dd5130235f78d4bc (diff)
downloadtdesvn-3bf59c97e24b56b23b67c6e482fb4682d8ebc1c0.tar.gz
tdesvn-3bf59c97e24b56b23b67c6e482fb4682d8ebc1c0.zip
Add CMakeL10n rules.
Update translation template. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
new file mode 100644
index 0000000..0a39ac0
--- /dev/null
+++ b/src/CMakeL10n.txt
@@ -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\$"
+)