Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions i18n/Messages.properties
Original file line number Diff line number Diff line change
@@ -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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\nLanguage-Team\: LANGUAGE <LL@li.org>\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\!
Expand Down
10 changes: 5 additions & 5 deletions i18n/update_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)