comparison scripts/i18n_utils.py @ 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 30e137b4ff18
children 19735bc60455
comparison
equal deleted inserted replaced
8332:58fc0c63ce55 8333:e505395c3a03
34 ^ 34 ^
35 [#][ ]Translations[ ]template[ ]for[ ]Kallithea[.] \n 35 [#][ ]Translations[ ]template[ ]for[ ]Kallithea[.] \n
36 | 36 |
37 ^ 37 ^
38 [#][ ]FIRST[ ]AUTHOR[ ]<EMAIL@ADDRESS>,[ ]\d+[.] \n 38 [#][ ]FIRST[ ]AUTHOR[ ]<EMAIL@ADDRESS>,[ ]\d+[.] \n
39 [#] \n 39 (?:[#] \n)?
40 |
41 ^
42 (?:[#] \n)?
40 [#],[ ]fuzzy \n 43 [#],[ ]fuzzy \n
41 ''', 44 ''',
42 re.MULTILINE|re.VERBOSE) 45 re.MULTILINE|re.VERBOSE)
43 46
44 header_normalize_re = re.compile(r''' 47 header_normalize_re = re.compile(r'''