From 2beb229f9cd8e9650c21bb42e0e7ebe82452e60d Mon Sep 17 00:00:00 2001 From: dismine Date: Tue, 23 Dec 2014 14:00:29 +0200 Subject: [PATCH] Some systems use special name for lrelease. For example opensuse 13.2 has lrelease-qt5. --HG-- branch : develop --- src/app/app.pro | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/app.pro b/src/app/app.pro index 1c8dc760b..2e331055c 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -309,12 +309,17 @@ unix{ } } +# Some systems use special name for lrelease. For example opensuse 13.2 has lrelease-qt5. +isEmpty(LRELEASE){ + LRELEASE = lrelease +} + # Run generation *.qm file for available *.ts files each time you run qmake. for(_translation_name, INSTALL_TRANSLATIONS) { _translation_name_qm = $$basename(_translation_name) _translation_name_ts = $$section(_translation_name_qm, ".", 0, 0).ts - system($$shell_path($$[QT_INSTALL_BINS]/lrelease) -removeidentical -nounfinished $$shell_path($${PWD}/$${TRANSLATIONS_PATH}/$$_translation_name_ts) -qm $$shell_path($${PWD}/$$_translation_name)) + system($$shell_path($$[QT_INSTALL_BINS]/$$LRELEASE) -removeidentical -nounfinished $$shell_path($${PWD}/$${TRANSLATIONS_PATH}/$$_translation_name_ts) -qm $$shell_path($${PWD}/$$_translation_name)) } for(DIR, INSTALL_TRANSLATIONS) {