Project

General

Profile

Emulator Issues #11507

DolphinQt: Common strings such as "Yes" and "No" aren't translated

Added by JosJuice over 1 year ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Current
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

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.)

History

#1 Updated by JosJuice about 1 year ago

tr calls for "Yes" and "No" happened to get added by 094bf0d, and translations for those two strings will therefore start showing up on Dolphin after two Transifex syncs. I'm not sure if there are any other common strings ("OK"? "Cancel"?) that we're missing.

#2 Updated by JosJuice about 1 year ago

  • Milestone deleted (Current)
  • 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

Also available in: Atom PDF