Update TDEL10n module

+ For _translatorinfo strings, replace the references
  to an intentionally non-existent source file and use
  instead comments explaining the purpose of these strings.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/42/head
Slávek Banko 5 years ago
parent 5cd16d6fb9
commit 4ced9fd928
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -646,6 +646,19 @@ macro( tde_l10n_create_template )
# update references for modified source files (".tde_l10n" extension)
string( REGEX REPLACE "\\.tde_l10n[0-9]*(:[0-9]+)" "\\1" _pot "${_pot}" )
# replace the references for _translatorinfo with instructions in the comment
string( REGEX REPLACE
"(^|\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])"
"\\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}"
)
string( REGEX REPLACE "(^|\n)#:($|\n)" "\\1" _pot "${_pot}" )
# save translation template
if( EXISTS "${_dest}${_catalog}.pot" )
file( READ "${_dest}${_catalog}.pot" _potOrig )

Loading…
Cancel
Save