make sure we remove obsolete entries from translations (#3995)

This commit is contained in:
Oliver Stöneberg 2022-04-11 11:25:08 +02:00 committed by GitHub
parent 8f386e15fd
commit 2d9ec39a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 1960 additions and 6026 deletions

View File

@ -71,7 +71,7 @@ jobs:
- name: Create .qm
run: |
cd gui
lupdate gui.pro
lupdate gui.pro -no-obsolete
lrelease gui.pro -removeidentical
- name: Matchcompiler

View File

@ -14,6 +14,7 @@ if (BUILD_GUI)
file(GLOB tss "*.ts")
QT_WRAP_UI(uis_hdrs ${uis})
QT_ADD_RESOURCES(resources "gui.qrc")
# TODO: passing "-no-obsolete" here breaks the translations
QT_CREATE_TRANSLATION(qms ${CMAKE_CURRENT_SOURCE_DIR} ${tss})
list(APPEND cppcheck-gui-deps ${hdrs} ${uis_hdrs} ${resources} ${qms})
add_custom_target(gui-build-deps SOURCES ${cppcheck-gui-deps})

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -61,10 +61,10 @@ and compile the translations. lupdate updates translations files from the code
and lrelease compiles translation files use with the executable.
To update translations:
- run lupdate gui.pro to update the translation files to match the code. This
- run "lupdate gui.pro -no-obsolete" to update the translation files to match the code. This
command updates all the .ts files. Which can be then edited to translate
the application.
To compile translations:
- run lrelease gui.pro to compile .ts files to .qm files which are used by the
- run "lrelease gui.pro" to compile .ts files to .qm files which are used by the
executable.