# HG changeset patch # User Mads Kiilerich # Date 2020-02-02 21:29:18 # 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 --git a/scripts/i18n_utils.py b/scripts/i18n_utils.py --- a/scripts/i18n_utils.py +++ b/scripts/i18n_utils.py @@ -36,7 +36,10 @@ header_comment_strip_re = re.compile(r'' | ^ [#][ ]FIRST[ ]AUTHOR[ ],[ ]\d+[.] \n - [#] \n + (?:[#] \n)? + | + ^ + (?:[#] \n)? [#],[ ]fuzzy \n ''', re.MULTILINE|re.VERBOSE)