Skip to content

Commit

Permalink
Improve po cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
PhracturedBlue committed Jan 21, 2019
1 parent 84e3614 commit 2d7c7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/clean_transifex_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import subprocess
import sys

cmd = ['git', 'diff']
cmd = ['git', 'diff', '--relative']
if len(sys.argv) > 1:
cmd += sys.argv[1:]

Expand All @@ -25,7 +25,7 @@
changes = 0
filename = os.path.sep.join(line.split(" ")[-1].split(os.path.sep)[1:]) # FIXME: This is not x-platform clean
if line.startswith(('-', '+')) and not line.startswith(('---', '+++')):
if '"POT-Creation-Date: ' not in line:
if not any(line[1:].startswith(x) for x in ['"POT-Creation-Date: ', '"Last-Translator: ', '#']):
changes += 1


0 comments on commit 2d7c7ff

Please sign in to comment.