Browse Source

Update TDEL10n module

+ Fix comment replacement and flag addition for _translatorinfo.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/44/head
Slávek Banko 4 months ago
parent
commit
f6f7bfc007
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/TDEL10n.cmake

+ 2
- 2
modules/TDEL10n.cmake View File

@@ -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