Emulator Issues #11507
DolphinQt: Common strings such as "Yes" and "No" aren't translated
Some common simple strings, such as as "Yes" and "No", aren't translated in DolphinQt. I guess this is because the strings only are used by code in Qt itself, not code that is in the Dolphin repo, and as such are not picked up by gettext and do not get translated on Transifex.
Quick way to reproduce: Clear out all Dolphin data or use portable.txt. Then you'll get the analytics question on first boot, with Yes and No buttons available for answering. (Since this also resets the language setting, you may want to just clear the analytics data instead if your system language is English.)
#2 Updated by JosJuice about 1 year ago
- Milestone deleted (
- Subject changed from DolphinQt: Common strings such as "Yes" and "No" aren't translated to DolphinQt: Strings from Qt itself are not added to the .pot file
We have "OK" and "Cancel" already, so I think it'll work fine for now. Unmarking as Current, but leaving open since we might want to investigate if there's a nice way to "pull" these strings directly from Qt (in case the netplay session browser stops containing the strings "Yes" and "No" or anything like that).
#3 Updated by JosJuice about 2 months ago
- Milestone set to Current
- Subject changed from DolphinQt: Strings from Qt itself are not added to the .pot file to DolphinQt: Common strings such as "Yes" and "No" aren't translated
Actually, the Yes and No buttons still aren't getting translated despite the strings being in the .pot file.
I believe the relevant code in Qt is this code, which is specifying a context for the strings: https://code.woboq.org/qt5/qtbase/src/gui/kernel/qplatformtheme.cpp.html#_ZN14QPlatformTheme25defaultStandardButtonTextEi