Browse Source
[qt] fix translations
[qt] fix translations
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>pull/2773/head
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
6 changed files with 87 additions and 62 deletions
-
21src/frontend_common/firmware_manager.h
-
2src/qt_common/CMakeLists.txt
-
3src/qt_common/externals/cpmfile.json
-
63src/qt_common/qt_string_lookup.h
-
34src/qt_common/util/content.cpp
-
26src/qt_common/util/content.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue