Commit 2b260854 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add context @title:window

parent a23284a1
......@@ -50,7 +50,7 @@ FollowUpReminderSelectDateDialog::FollowUpReminderSelectDateDialog(QWidget *pare
: QDialog(parent)
, d(new MessageComposer::FollowUpReminderSelectDateDialogPrivate)
{
setWindowTitle(i18n("Select Date"));
setWindowTitle(i18nc("@title:window", "Select Date"));
QVBoxLayout *topLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
......
......@@ -46,7 +46,7 @@ RecipientsPicker::RecipientsPicker(QWidget *parent)
: QDialog(parent)
{
setObjectName(QStringLiteral("RecipientsPicker"));
setWindowTitle(i18n("Select Recipient"));
setWindowTitle(i18nc("@title:window", "Select Recipient"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
......
......@@ -319,7 +319,7 @@ AttachmentPropertiesDialog::AttachmentPropertiesDialog(const AttachmentPart::Ptr
, d(new Private(this))
{
d->init(part, readOnly);
setWindowTitle(i18n("Attachment Properties"));
setWindowTitle(i18nc("@title:window", "Attachment Properties"));
}
AttachmentPropertiesDialog::AttachmentPropertiesDialog(const KMime::Content *content, QWidget *parent)
......@@ -334,7 +334,7 @@ AttachmentPropertiesDialog::AttachmentPropertiesDialog(const KMime::Content *con
const AttachmentPart::Ptr part = job->attachmentPart();
d->init(part, true);
setWindowTitle(i18n("Attachment Properties"));
setWindowTitle(i18nc("@title:window", "Attachment Properties"));
}
AttachmentPropertiesDialog::~AttachmentPropertiesDialog()
......
......@@ -108,7 +108,7 @@ ConfigureAggregationsDialog::ConfigureAggregationsDialog(QWidget *parent)
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
connect(buttonBox, &QDialogButtonBox::rejected, this, &ConfigureAggregationsDialog::reject);
setWindowTitle(i18n("Customize Message Aggregation Modes"));
setWindowTitle(i18nc("@title:window", "Customize Message Aggregation Modes"));
QWidget *base = new QWidget(this);
mainLayout->addWidget(base);
......
......@@ -103,7 +103,7 @@ ConfigureThemesDialog::ConfigureThemesDialog(QWidget *parent)
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
connect(buttonBox, &QDialogButtonBox::rejected, this, &ConfigureThemesDialog::reject);
setWindowTitle(i18n("Customize Themes"));
setWindowTitle(i18nc("@title:window", "Customize Themes"));
QWidget *base = new QWidget(this);
mainLayout->addWidget(base);
......
......@@ -44,7 +44,7 @@ using namespace MessageViewer;
ScamDetectionDetailsDialog::ScamDetectionDetailsDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Details"));
setWindowTitle(i18nc("@title:window", "Details"));
setAttribute(Qt::WA_DeleteOnClose);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
......
......@@ -1331,7 +1331,7 @@ void ViewerPrivate::setMessagePart(KMime::Content *node)
windowTitle = node->contentDescription()->asUnicodeString();
}
if (!windowTitle.isEmpty()) {
mMainWindow->setWindowTitle(i18n("View Attachment: %1", windowTitle));
mMainWindow->setWindowTitle(i18nc("@title:window", "View Attachment: %1", windowTitle));
}
}
......@@ -2173,7 +2173,7 @@ void ViewerPrivate::slotShowMessageSource()
QPointer<MailSourceWebEngineViewer> viewer = new MailSourceWebEngineViewer; // deletes itself upon close
mListMailSourceViewer.append(viewer);
viewer->setWindowTitle(i18n("Message as Plain Text"));
viewer->setWindowTitle(i18nc("@title:window", "Message as Plain Text"));
const QString rawMessage = QString::fromLatin1(mMessage->encodedContent());
viewer->setRawSource(rawMessage);
viewer->setDisplayedSource(mViewer->page());
......@@ -2354,7 +2354,7 @@ void ViewerPrivate::slotPrintMessage()
}
mCurrentPrinter = new QPrinter();
QPointer<QPrintDialog> dialog = new QPrintDialog(mCurrentPrinter, mMainWindow);
dialog->setWindowTitle(i18n("Print Document"));
dialog->setWindowTitle(i18nc("@title:window", "Print Document"));
if (dialog->exec() != QDialog::Accepted) {
slotHandlePagePrinted(false);
delete dialog;
......
......@@ -40,7 +40,7 @@ AttachmentDialog::AttachmentDialog(QWidget *parent, const QString &filenameText,
filenameText);
dialog = new QDialog(parent);
dialog->setWindowTitle(i18n("Open Attachment?"));
dialog->setWindowTitle(i18nc("@title:window", "Open Attachment?"));
dialog->setObjectName(QStringLiteral("attachmentSaveOpen"));
mButtonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, dialog);
QPushButton *user1Button = new QPushButton;
......
......@@ -30,7 +30,7 @@ using namespace MessageViewer;
MailTrackingDetailsDialog::MailTrackingDetailsDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Details"));
setWindowTitle(i18nc("@title:window", "Details"));
setAttribute(Qt::WA_DeleteOnClose);
setModal(false);
......
......@@ -41,7 +41,7 @@ using namespace MessageViewer;
VCardViewer::VCardViewer(QWidget *parent, const QByteArray &vCard)
: QDialog(parent)
{
setWindowTitle(i18n("vCard Viewer"));
setWindowTitle(i18nc("@title:window", "vCard Viewer"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this);
QPushButton *user1Button = new QPushButton;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment