Skip to content

Commit

Permalink
Prepare translation files on build
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed Jan 19, 2024
1 parent 5797a3b commit 972046f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/push-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,5 @@ jobs:
QMAKESPEC: ${{ matrix.config.qmakespec }}
run: |
cd emulator
lrelease QtUkncBtl.pro
qmake "CONFIG+=debug" QtUkncBtl.pro
make
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@
/emulator/Makefile
/emulator/object_script.*
/emulator/lang/*.qm
Makefile
moc_*.cpp
moc_*.h
qrc_*.cpp
ui_*.h
/emulator/.qtc_clangd/*
/emulator/.qmake.cache
/emulator/.qmake.stash
/emulator/.qm
.qmake.cache
.qmake.stash
*.json
*.user
.autosave
/emulator/QtUkncBtl
/emulator/QtUkncBtl.app
QtUkncBtl.app
/emulator/trace.log
*.dsk
/x-*
10 changes: 9 additions & 1 deletion emulator/QtUkncBtl.pro
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,15 @@ QT += script
QT += testlib
QT += multimedia
DEFINES -= UNICODE _UNICODE
TRANSLATIONS = lang/ukncbtl_en.ts lang/ukncbtl_ru.ts
CONFIG += c++11
QMAKE_CXXFLAGS += -std=c++11
ICON = images/ukncbtl.icns

TS_FILES = $$files(lang/*.ts, false)
lrelease.name = LRELEASE ${QMAKE_FILE_IN}
lrelease.commands = lrelease ${QMAKE_FILE_IN} -qm lang/${QMAKE_FILE_BASE}.qm
lrelease.output = ${QMAKE_FILE_BASE}.qm
lrelease.input = TS_FILES
lrelease.clean = lang/${QMAKE_FILE_BASE}.qm
lrelease.CONFIG += no_link target_predeps
QMAKE_EXTRA_COMPILERS += lrelease

0 comments on commit 972046f

Please sign in to comment.