Fix the translation of standard buttons in Dialogs

This commit is contained in:
happyharryh
2022-11-07 09:02:04 +08:00
committed by Cameron Gutman
parent 92670cc051
commit 8cd0536fb1
40 changed files with 674 additions and 23 deletions

View File

@@ -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") {