diff --git a/share/qtcreator/translations/translations.pro b/share/qtcreator/translations/translations.pro
index d15586009a6785b226d2daaef998b1a4ce2589b5..0c7159690b086e505f251939be5f871ddf65c4fe 100644
--- a/share/qtcreator/translations/translations.pro
+++ b/share/qtcreator/translations/translations.pro
@@ -14,8 +14,8 @@ LRELEASE = $$targetPath($$[QT_INSTALL_BINS]/lrelease)
 
 TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/qtcreator_,.ts)
 
-MIME_TR_H = $$IDE_DATA_PATH/translations/mime_tr.h
-CUSTOMWIZARD_TR_H = $$IDE_DATA_PATH/translations/customwizard_tr.h
+MIME_TR_H = $$OUT_PWD/mime_tr.h
+CUSTOMWIZARD_TR_H = $$OUT_PWD/customwizard_tr.h
 
 contains(QT_VERSION, ^4\.[0-6]\..*) {
     ts.commands = @echo This Qt version is too old for the ts target. Need Qt 4.7+.