mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-15 04:06:24 +00:00
Fix the translation of standard buttons in Dialogs
This commit is contained in:
committed by
Cameron Gutman
parent
92670cc051
commit
8cd0536fb1
@@ -531,6 +531,13 @@ int main(int argc, char *argv[])
|
||||
StreamingPreferences prefs;
|
||||
prefs.retranslate();
|
||||
|
||||
// Trickily declare the translation for dialog buttons
|
||||
QCoreApplication::translate("QPlatformTheme", "&Yes");
|
||||
QCoreApplication::translate("QPlatformTheme", "&No");
|
||||
QCoreApplication::translate("QPlatformTheme", "OK");
|
||||
QCoreApplication::translate("QPlatformTheme", "Help");
|
||||
QCoreApplication::translate("QPlatformTheme", "Cancel");
|
||||
|
||||
// After the QGuiApplication is created, the platform stuff will be initialized
|
||||
// and we can set the SDL video driver to match Qt.
|
||||
if (WMUtils::isRunningWayland() && QGuiApplication::platformName() == "xcb") {
|
||||
|
||||
Reference in New Issue
Block a user