UI: Make sure all message box buttons are translated
Instead of QMessageBox::question and QMessageBox::information, use the OBSMessageBox class, which translates all buttons.
This commit is contained in:
parent
bd34dce8b6
commit
522f5cdf3b
12 changed files with 53 additions and 53 deletions
|
|
@ -364,7 +364,7 @@ void OBSBasic::AddTransition()
|
|||
|
||||
if (accepted) {
|
||||
if (name.empty()) {
|
||||
QMessageBox::information(this,
|
||||
OBSMessageBox::information(this,
|
||||
QTStr("NoNameEntered.Title"),
|
||||
QTStr("NoNameEntered.Text"));
|
||||
AddTransition();
|
||||
|
|
@ -373,7 +373,7 @@ void OBSBasic::AddTransition()
|
|||
|
||||
source = FindTransition(name.c_str());
|
||||
if (source) {
|
||||
QMessageBox::information(this,
|
||||
OBSMessageBox::information(this,
|
||||
QTStr("NameExists.Title"),
|
||||
QTStr("NameExists.Text"));
|
||||
|
||||
|
|
@ -464,7 +464,7 @@ void OBSBasic::RenameTransition()
|
|||
|
||||
if (accepted) {
|
||||
if (name.empty()) {
|
||||
QMessageBox::information(this,
|
||||
OBSMessageBox::information(this,
|
||||
QTStr("NoNameEntered.Title"),
|
||||
QTStr("NoNameEntered.Text"));
|
||||
RenameTransition();
|
||||
|
|
@ -473,7 +473,7 @@ void OBSBasic::RenameTransition()
|
|||
|
||||
source = FindTransition(name.c_str());
|
||||
if (source) {
|
||||
QMessageBox::information(this,
|
||||
OBSMessageBox::information(this,
|
||||
QTStr("NameExists.Title"),
|
||||
QTStr("NameExists.Text"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue