summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-11 02:30:47 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-11 02:30:47 +0200
commitf6f7bfc0071bb86244d31258893cd5c3a676546b (patch)
tree9648d7da6e0703fa15b40d017d4b6eb27085e4c7
parente72aabadf5ddef845a432542176e969fad8a7ef3 (diff)
downloadtde-cmake-f6f7bfc0.tar.gz
tde-cmake-f6f7bfc0.zip
Update TDEL10n module
+ Fix comment replacement and flag addition for _translatorinfo. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--modules/TDEL10n.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/TDEL10n.cmake b/modules/TDEL10n.cmake
index 5bf2279..c960bdb 100644
--- a/modules/TDEL10n.cmake
+++ b/modules/TDEL10n.cmake
@@ -648,12 +648,12 @@ macro( tde_l10n_create_template )
# replace the references for _translatorinfo with instructions in the comment
string( REGEX REPLACE
- "(^|\n)(#:[^\n]*) _translatorinfo:1($|[ \n])"
+ "(^|\n)(#:[^\n]*) _translatorinfo:1($|[^\n]*)"
"\\1#. Instead of a literal translation, add your name to the end of the list (separated by a comma).\n\\2\\3\n#, ignore-inconsistent"
_pot "${_pot}"
)
string( REGEX REPLACE
- "(^|\n)(#:[^\n]*) _translatorinfo:2($|[ \n])"
+ "(^|\n)(#:[^\n]*) _translatorinfo:2($|[^\n]*)"
"\\1#. Instead of a literal translation, add your email to the end of the list (separated by a comma).\n\\2\\3\n#, ignore-inconsistent"
_pot "${_pot}"
)