Commit f9cd84c1 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

don't abuse special TRANSLATIONS variable

parent d4797bd9
include(../../../qtcreator.pri) include(../../../qtcreator.pri)
TRANSLATIONS = de it ja ru LANGUAGES = de it ja ru
# var, prepend, append # var, prepend, append
defineReplace(prependAll) { defineReplace(prependAll) {
...@@ -11,10 +11,10 @@ defineReplace(prependAll) { ...@@ -11,10 +11,10 @@ defineReplace(prependAll) {
LUPDATE = $$targetPath($$[QT_INSTALL_BINS]/lupdate) -locations relative -no-ui-lines LUPDATE = $$targetPath($$[QT_INSTALL_BINS]/lupdate) -locations relative -no-ui-lines
LRELEASE = $$targetPath($$[QT_INSTALL_BINS]/lrelease) LRELEASE = $$targetPath($$[QT_INSTALL_BINS]/lrelease)
TS_FILES = $$prependAll(TRANSLATIONS, $$PWD/qtcreator_,.ts) TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/qtcreator_,.ts)
contains(QT_VERSION, ^4\.[0-5]\..*):ts.commands = @echo This Qt version is too old for the ts target. Need Qt 4.6+. contains(QT_VERSION, ^4\.[0-5]\..*):ts.commands = @echo This Qt version is too old for the ts target. Need Qt 4.6+.
else:ts.commands = (cd $$IDE_SOURCE_TREE && $$LUPDATE src -ts $$TS_FILES) else:ts.commands = (cd $$IDE_SOURCE_TREE && $$LUPDATE src -ts $$TRANSLATIONS)
QMAKE_EXTRA_TARGETS += ts QMAKE_EXTRA_TARGETS += ts
TEMPLATE = app TEMPLATE = app
...@@ -23,7 +23,7 @@ CONFIG -= qt ...@@ -23,7 +23,7 @@ CONFIG -= qt
QT = QT =
LIBS = LIBS =
updateqm.input = TS_FILES updateqm.input = TRANSLATIONS
updateqm.output = $$IDE_DATA_PATH/translations/${QMAKE_FILE_BASE}.qm updateqm.output = $$IDE_DATA_PATH/translations/${QMAKE_FILE_BASE}.qm
isEmpty(vcproj):updateqm.variable_out = PRE_TARGETDEPS isEmpty(vcproj):updateqm.variable_out = PRE_TARGETDEPS
updateqm.commands = $$LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT} updateqm.commands = $$LRELEASE ${QMAKE_FILE_IN} -qm ${QMAKE_FILE_OUT}
...@@ -47,6 +47,6 @@ isEmpty(vcproj) { ...@@ -47,6 +47,6 @@ isEmpty(vcproj) {
QMAKE_EXTRA_COMPILERS += phony_src QMAKE_EXTRA_COMPILERS += phony_src
} }
qmfiles.files = $$prependAll(TRANSLATIONS, $$OUT_PWD/qtcreator_,.qm) qmfiles.files = $$prependAll(LANGUAGES, $$OUT_PWD/qtcreator_,.qm)
qmfiles.path = /share/qtcreator/translations qmfiles.path = /share/qtcreator/translations
INSTALLS += qmfiles INSTALLS += qmfiles
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment