summaryrefslogtreecommitdiff
path: root/tools/translations/extract.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/translations/extract.py')
-rwxr-xr-xtools/translations/extract.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/translations/extract.py b/tools/translations/extract.py
index f2ee1ecb19..bd6f03237b 100755
--- a/tools/translations/extract.py
+++ b/tools/translations/extract.py
@@ -78,7 +78,7 @@ for fname in matches:
msg += l[pos]
pos += 1
- location = os.path.relpath(fname).replace('\\','/')
+ location = os.path.relpath(fname).replace('\\', '/')
if (line_nb):
location += ":" + str(lc)
@@ -115,7 +115,7 @@ shutil.move("tools.pot", "tools/translations/tools.pot")
# TODO: Make that in a portable way, if we care; if not, kudos to Unix users
if (os.name == "posix"):
- added = subprocess.check_output("git diff tools/translations/tools.pot | grep \+msgid | wc -l", shell = True)
- removed = subprocess.check_output("git diff tools/translations/tools.pot | grep \\\-msgid | wc -l", shell = True)
+ added = subprocess.check_output("git diff tools/translations/tools.pot | grep \+msgid | wc -l", shell=True)
+ removed = subprocess.check_output("git diff tools/translations/tools.pot | grep \\\-msgid | wc -l", shell=True)
print("\n# Template changes compared to the staged status:")
print("# Additions: %s msgids.\n# Deletions: %s msgids." % (int(added), int(removed)))