Update TDEL10n module

+ Fix comment replacement and flag addition for _translatorinfo.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit f6f7bfc007)
r14.0.x
Slávek Banko 5 years ago
parent 083913c406
commit 6351298434
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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}"
)

Loading…
Cancel
Save