diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-05-09 17:37:05 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-05-11 00:41:59 +0200 |
commit | 5aa76deb8fa9d0f7441e7a7307fc4e8d72b64317 (patch) | |
tree | fcee1c0609bcaef56ff91d0b064ad1002c61f6b6 /modules | |
parent | 94d67073e51dd664a28f4e590ccc6ce9f654af47 (diff) | |
download | tde-cmake-5aa76deb8fa9d0f7441e7a7307fc4e8d72b64317.tar.gz tde-cmake-5aa76deb8fa9d0f7441e7a7307fc4e8d72b64317.zip |
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>
(cherry picked from commit 4ced9fd928bfdf8a44152492b504bba4e0f98da5)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/TDEL10n.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/TDEL10n.cmake b/modules/TDEL10n.cmake index 1f7df76..5bf2279 100644 --- a/modules/TDEL10n.cmake +++ b/modules/TDEL10n.cmake @@ -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 ) |