[qt] fix translations #2773

Merged
MaranBr merged 4 commits from fix-translations into master 2025-10-18 22:19:07 +02:00
Owner

Linguist strongly dislikes lookup tables of this sort due to the fact
that it looks for tr(), qsTr(), etc. when determining what strings need
translations. However, it does provide QT_TR_NOOP which marks the
string for translation without running the translation, which is designed
to allow for static or constexpr lookup tables. So let's use that.

Signed-off-by: crueter crueter@eden-emu.dev

Linguist strongly dislikes lookup tables of this sort due to the fact that it looks for tr(), qsTr(), etc. when determining what strings need translations. However, it does provide QT_TR_NOOP which marks the string for translation *without* running the translation, which is designed to allow for static or constexpr lookup tables. So let's use that. Signed-off-by: crueter <crueter@eden-emu.dev>
[qt] fix translations
All checks were successful
eden-license / license-header (pull_request) Successful in 26s
107372df59
Linguist strongly dislikes lookup tables of this sort due to the fact
that it looks for tr(), qsTr(), etc. when determining what strings need
translations. To fix this, we can create a "fake" tr function that gets
Linguist to recognize the strings while keeping them constexpr; then,
the Lookup function can translate them at runtime.

Signed-off-by: crueter <crueter@eden-emu.dev>
use QT_TR_NOOP
All checks were successful
eden-license / license-header (pull_request) Successful in 27s
fa07687fd3
Signed-off-by: crueter <crueter@eden-emu.dev>
crueter force-pushed fix-translations from fa07687fd3
All checks were successful
eden-license / license-header (pull_request) Successful in 27s
to af1943cabc
Some checks failed
eden-license / license-header (pull_request) Successful in 30s
GitHub Actions [CI] Build failed
2025-10-18 20:02:46 +02:00
Compare
fixup migrator
Some checks reported errors
eden-license / license-header (pull_request) Successful in 29s
GitHub Actions [CI] Build cancelled
94b0a1289a
Signed-off-by: crueter <crueter@eden-emu.dev>
fix
All checks were successful
eden-license / license-header (pull_request) Successful in 27s
GitHub Actions [CI] Build succeeded
40abde010b
Signed-off-by: crueter <crueter@eden-emu.dev>
MaranBr approved these changes 2025-10-18 20:46:38 +02:00
MaranBr scheduled this pull request to auto merge when all checks succeed 2025-10-18 20:46:55 +02:00
Lizzie approved these changes 2025-10-18 22:19:04 +02:00
MaranBr merged commit a53823646c into master 2025-10-18 22:19:07 +02:00
MaranBr deleted branch fix-translations 2025-10-18 22:19:07 +02:00
MaranBr referenced this pull request from a commit 2025-10-18 22:19:08 +02:00
Sign in to join this conversation.
No description provided.