diff options
author | Sergey Belyashov <Sergey.Belyashov@gmail.com> | 2015-10-28 15:25:30 +0300 |
---|---|---|
committer | Sergey Belyashov <Sergey.Belyashov@gmail.com> | 2015-10-28 13:33:25 +0000 |
commit | e3ad8d7f9fd4778b2cb23d74a7caad01ab3dff9b (patch) | |
tree | ce9195c9a6f90b6612b7f557f17480c16c75b8ce /share/qtcreator/translations/jsonwizard_tr.pro | |
parent | d498795cea076fd5438fcb0541df6eeab8b46266 (diff) |
Fix JsonWizard translation
Fix generation of jsonwizard_tr.h helper file used by lupdate for
translation files.
Change-Id: I4bd293b2b107d4b7a6a49d955d9d8734a4b42e85
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'share/qtcreator/translations/jsonwizard_tr.pro')
-rw-r--r-- | share/qtcreator/translations/jsonwizard_tr.pro | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/qtcreator/translations/jsonwizard_tr.pro b/share/qtcreator/translations/jsonwizard_tr.pro index 4bc9f6da91..e800063758 100644 --- a/share/qtcreator/translations/jsonwizard_tr.pro +++ b/share/qtcreator/translations/jsonwizard_tr.pro @@ -13,8 +13,9 @@ defineReplace(findToTranslate) { SUBKEY = $${ROOTKEY}.$${KEY} MATCHED = $$find(KEY, ^tr[A-Z]) !isEmpty(MATCHED) { - VALUE = $$eval($${SUBKEY}) - OUTPUT += "QCoreApplication(\"ProjectExplorer::JsonWizard\", \"$${VALUE}\");" + VALUE = $$replace($${SUBKEY}, "\\n", "\\n") + VALUE ~= s,\",\\\", + OUTPUT += "QT_TRANSLATE_NOOP(\"ProjectExplorer::JsonWizard\", \"$${VALUE}\");" } OUTPUT += $$findToTranslate($${SUBKEY}) } @@ -22,8 +23,7 @@ defineReplace(findToTranslate) { } WIZ_TRANS_FILE_CONT= \ - "// This file is autogenerated by qmake." \ - "$${LITERAL_HASH}include <QCoreApplication>" + "// This file is autogenerated by qmake." for (FILE, JSONWIZARD_FILES) { exists($$FILE) { |