changeset 8333:e505395c3a03

i18n: better stripping of header comment for new translations Also strip any header occurrence of: # FIRST AUTHOR <EMAIL@ADDRESS>, 2019. # while preserving stripping of: #, fuzzy and leading empty comment lines.
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 02 Feb 2020 21:29:18 +0100
parents 58fc0c63ce55
children 19735bc60455
files scripts/i18n_utils.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/i18n_utils.py	Mon Mar 30 17:34:00 2020 +0200
+++ b/scripts/i18n_utils.py	Sun Feb 02 21:29:18 2020 +0100
@@ -36,7 +36,10 @@
     |
     ^
     [#][ ]FIRST[ ]AUTHOR[ ]<EMAIL@ADDRESS>,[ ]\d+[.] \n
-    [#] \n
+    (?:[#] \n)?
+    |
+    ^
+    (?:[#] \n)?
     [#],[ ]fuzzy \n
     ''',
     re.MULTILINE|re.VERBOSE)