# HG changeset patch # User Mads Kiilerich # Date 1580675358 -3600 # Node ID e505395c3a03561301eb619dd2cad9e1bb0baae0 # Parent 58fc0c63ce55c400cf110cd742a8011be90d8ad8 i18n: better stripping of header comment for new translations Also strip any header occurrence of: # FIRST AUTHOR , 2019. # while preserving stripping of: #, fuzzy and leading empty comment lines. diff -r 58fc0c63ce55 -r e505395c3a03 scripts/i18n_utils.py --- 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[ ],[ ]\d+[.] \n - [#] \n + (?:[#] \n)? + | + ^ + (?:[#] \n)? [#],[ ]fuzzy \n ''', re.MULTILINE|re.VERBOSE)