diff --git a/i18n/Messages.properties b/i18n/Messages.properties index efa4db9725..baad5680b5 100644 --- a/i18n/Messages.properties +++ b/i18n/Messages.properties @@ -1,11 +1,3 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -!=Project-Id-Version\: PACKAGE VERSION\nReport-Msgid-Bugs-To\: \nPOT-Creation-Date\: YEAR-MO-DA HO\:MI+ZONE\nPO-Revision-Date\: YEAR-MO-DA HO\:MI+ZONE\nLast-Translator\: FULL NAME \nLanguage-Team\: LANGUAGE \nLanguage\: \nMIME-Version\: 1.0\nContent-Type\: text/plain; charset\=UTF-8\nContent-Transfer-Encoding\: 8bit\n - #: i18n/tmp/Applications/Games/Shower With Your Dad Simulator 2015: Do You #: Still Shower Dad/application.js:2 'Shower\ With\ Your\ Dad\ Simulator\ 2015\:\ Do\ You\ Still\ Shower\ With\ Your\ Dad?'\ is\ a\ fast\ paced\ shower-simulation\ where\ you\ shower\ with\ your\ 8-bit\ dad.\ It's\ good,\ clean\ fun\!='Shower With Your Dad Simulator 2015\: Do You Still Shower With Your Dad?' is a fast paced shower-simulation where you shower with your 8-bit dad. It's good, clean fun\! diff --git a/i18n/update_translations.py b/i18n/update_translations.py index 2c83bae414..7b24815c03 100755 --- a/i18n/update_translations.py +++ b/i18n/update_translations.py @@ -87,12 +87,12 @@ shutil.rmtree(out_dir) -# delete date to avoid changes in git +# delete header (Crowdin interprets it as context of first string) lines = [] -regex = re.compile(r"POT-Creation-Date\\:.*\\nPO-Revision-Date") +regex = re.compile(r"\A.*Content-Transfer-Encoding\\: 8bit\\n\n\n", re.MULTILINE|re.DOTALL) +orig = "" with open(properties_file) as input_file: - for line in input_file: - lines.append(regex.sub("POT-Creation-Date\: YEAR-MO-DA HO\:MI+ZONE\\\\nPO-Revision-Date", line)) + orig = regex.sub("", input_file.read()) with open(properties_file, 'w') as output_file: - for line in lines: + for line in orig: output_file.write(line)