Skip to content

Commit d529207

Browse files
committed
Use CAP() for window titles
1 parent 0500ff3 commit d529207

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/historyimp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void HistoryImport::showDialog()
211211
{
212212
dlg = new QDialog();
213213
dlg->setModal(true);
214-
dlg->setWindowTitle(tr("Psi+ Import history"));
214+
dlg->setWindowTitle(CAP(tr("Import history")));
215215
QVBoxLayout *mainLayout = new QVBoxLayout(dlg);
216216
stackedWidget = new QStackedWidget(dlg);
217217

src/psioptionseditor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ OptionEditor::OptionEditor(bool new_, QString name_, QVariant value_)
9393
}
9494
}
9595
if (!ok) {
96-
QMessageBox::critical(this, tr("Psi: Option Editor"), tr("Can't edit this type of setting, sorry."),
96+
QMessageBox::critical(this, CAP(tr("Option Editor")), tr("Can't edit this type of setting, sorry."),
9797
QMessageBox::Close);
9898
deleteLater();
9999
}
@@ -106,7 +106,7 @@ void OptionEditor::finished()
106106
{
107107
QString option = le_option->text();
108108
if (option.isEmpty() || option.endsWith(".") || option.contains("..") || !PsiOptions::isValidName(option)) {
109-
QMessageBox::critical(this, tr("Psi: Option Editor"),
109+
QMessageBox::critical(this, CAP(tr("Option Editor")),
110110
tr("Please enter option name.\n\n"
111111
"Option names may not be empty, end in '.' or contain '..'."),
112112
QMessageBox::Close);
@@ -331,7 +331,7 @@ void PsiOptionsEditor::deleteit()
331331
confirm = tr("Really delete all options starting with %1.?");
332332
}
333333
if (QMessageBox::Yes
334-
== QMessageBox::warning(this, tr("Psi+: Option Editor"), confirm.arg(option),
334+
== QMessageBox::warning(this, CAP(tr("Option Editor")), confirm.arg(option),
335335
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel)) {
336336
PsiOptions::instance()->removeOption(option, sub);
337337
}
@@ -346,7 +346,7 @@ void PsiOptionsEditor::resetit()
346346
confirm = tr("Really reset all options starting with %1. to default value?");
347347
}
348348
if (QMessageBox::Yes
349-
== QMessageBox::warning(this, tr("Psi+: Option Editor"), confirm.arg(option),
349+
== QMessageBox::warning(this, CAP(tr("Option Editor")), confirm.arg(option),
350350
QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel)) {
351351
PsiOptions::instance()->resetOption(option);
352352
}

0 commit comments

Comments
 (0)