mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Fix localization files' installation on Linux/MacOS
This commit is contained in:
parent
60fcfd2cb0
commit
bbce340353
|
@ -431,6 +431,14 @@ win32 {
|
||||||
win32:# Windows doesn't seem to have *-qt4 symlinks
|
win32:# Windows doesn't seem to have *-qt4 symlinks
|
||||||
isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
||||||
isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease-qt4
|
isEmpty(QMAKE_LRELEASE):QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease-qt4
|
||||||
|
|
||||||
|
# The *.qm files might not exist when qmake is run for the first time,
|
||||||
|
# causing the standard install rule to be ignored, and no translations
|
||||||
|
# will be installed. With this, we create the qm files during qmake run.
|
||||||
|
!win32 {
|
||||||
|
system($${QMAKE_LRELEASE} -silent $${_PRO_FILE_} 2> /dev/null)
|
||||||
|
}
|
||||||
|
|
||||||
updateqm.input = TRANSLATIONS
|
updateqm.input = TRANSLATIONS
|
||||||
updateqm.output = locale/${QMAKE_FILE_BASE}.qm
|
updateqm.output = locale/${QMAKE_FILE_BASE}.qm
|
||||||
updateqm.commands = $$QMAKE_LRELEASE \
|
updateqm.commands = $$QMAKE_LRELEASE \
|
||||||
|
|
Loading…
Reference in a new issue