소스 검색

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.
jp9000 8 년 전
부모
커밋
72d7adba67
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      UI/qt-wrappers.cpp

+ 2 - 1
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);