mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 13:18:06 -06:00
Move qm_gen.pri
This commit is contained in:
committed by
sledgehammer999
parent
afa8d6bb8f
commit
2ffc09d097
21
src/lang/lang.pri
Normal file
21
src/lang/lang.pri
Normal file
@@ -0,0 +1,21 @@
|
||||
TRANSLATIONS += $$files(qbittorrent_*.ts)
|
||||
TS_IN_NOEXT = $$replace(TRANSLATIONS,".ts","")
|
||||
|
||||
isEmpty(QMAKE_LRELEASE) {
|
||||
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]\\lrelease.exe
|
||||
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
|
||||
unix {
|
||||
equals(QT_MAJOR_VERSION, 5) {
|
||||
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease-qt5 }
|
||||
}
|
||||
} else {
|
||||
!exists($$QMAKE_LRELEASE) { QMAKE_LRELEASE = lrelease }
|
||||
}
|
||||
}
|
||||
|
||||
message("Building translations")
|
||||
for(L,TS_IN_NOEXT) {
|
||||
message("Processing $${L}")
|
||||
system("$$QMAKE_LRELEASE -silent $${L}.ts -qm $${L}.qm")
|
||||
!exists("$${L}.qm"):error("Building translations failed, cannot continue")
|
||||
}
|
||||
Reference in New Issue
Block a user