Changeset - 30e137b4ff18
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 6 years ago 2019-12-19 20:47:55
mads@kiilerich.com
Grafted from: af9b446f297c
scripts/i18n: also normalize casing of UTF-8 in Content-Type

f626260a376c introduced invariant msgmerge casing. Do the same when normalizing
to ensure consistency also without msgmerge and to avoid unnecessary conflicts.
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
scripts/i18n_utils.py
Show inline comments
 
@@ -133,6 +133,9 @@ def _normalize_po(raw_content):
 
            .strip(),
 
        '',
 
        header_normalize_re.sub('', raw_content[header_start:header_end])
 
            .replace(
 
                r'"Content-Type: text/plain; charset=utf-8\n"',
 
                r'"Content-Type: text/plain; charset=UTF-8\n"')  # maintain msgmerge casing
 
            .strip(),
 
        '']  # preserve normalized header
 
    # all chunks are separated by empty line
0 comments (0 inline, 0 general)