diff --git a/.gitignore b/.gitignore
index 990859daee3c61e86afd879f0c24724c1741d8b4..c197d877e11bc439056a11a426fb30027f0c3853 100644
--- a/.gitignore
+++ b/.gitignore
@@ -115,6 +115,7 @@ tests/auto/qresourceengine/runtime_resource.rcc
 tools/activeqt/testcon/testcon.tlb
 translations/*.qm
 translations/*_untranslated.ts
+translations/*_en.ts
 qrc_*.cpp
 
 # Test generated files
diff --git a/translations/translations.pro b/translations/translations.pro
index 3935c6f3ef83fd7282b369b8ac1ea91a4aebf360..acfd659e8bf25f4281d56b5f21aec34d6969d48a 100644
--- a/translations/translations.pro
+++ b/translations/translations.pro
@@ -78,19 +78,19 @@ check-ts.depends = ts-all
 isEqual(QMAKE_DIR_SEP, /) {
     commit-ts.commands = \
         cd $$PWD/..; \
-        git add -N translations/*_??.ts && \
+        git add -N \"translations/*_??.ts\" && \
         for f in `git diff-files --name-only translations/*_??.ts`; do \
             $$LCONVERT -locations none -i \$\$f -o \$\$f; \
         done; \
-        git add translations/*_??.ts && git commit
+        git add \"translations/*_??.ts\" && git commit
 } else {
     wd = $$replace(PWD, /, \\)\\..
     commit-ts.commands = \
         cd $$wd && \
-        git add -N translations/*_??.ts && \
+        git add -N \"translations/*_??.ts\" && \
         for /f usebackq %%f in (`git diff-files --name-only translations/*_??.ts`) do \
             $$LCONVERT -locations none -i %%f -o %%f $$escape_expand(\\n\\t) \
-        cd $$wd && git add translations/*_??.ts && git commit
+        cd $$wd && git add \"translations/*_??.ts\" && git commit
 }
 
 ts.commands = \