From 72d7adba67417ce71c65faea59f47edca3ad99a9 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sat, 13 May 2017 14:10:44 -0700 Subject: [PATCH] UI: Fix locale text for "OK" in question dialogs This is the only case where the button's name does not match the locale's text, the button name being "Ok" and the locale text item being "OK", fully capitalized. --- UI/qt-wrappers.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/qt-wrappers.cpp b/UI/qt-wrappers.cpp index 8abfe17be..eac5ea0f3 100644 --- a/UI/qt-wrappers.cpp +++ b/UI/qt-wrappers.cpp @@ -55,10 +55,11 @@ QMessageBox::StandardButton OBSMessageBox::question( title, text, buttons, parent); mb.setDefaultButton(defaultButton); + if (buttons & QMessageBox::Ok) \ + mb.setButtonText(QMessageBox::Ok, QTStr("OK")); #define translate_button(x) \ if (buttons & QMessageBox::x) \ mb.setButtonText(QMessageBox::x, QTStr(#x)); - translate_button(Ok); translate_button(Open); translate_button(Save); translate_button(Cancel);