Commit a8b51e63 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add context @title:window

parent 9388aae7
......@@ -41,9 +41,9 @@ AddArchiveMailDialog::AddArchiveMailDialog(ArchiveMailInfo *info, QWidget *paren
, mInfo(info)
{
if (info) {
setWindowTitle(i18n("Modify Archive Mail"));
setWindowTitle(i18nc("@title:window", "Modify Archive Mail"));
} else {
setWindowTitle(i18n("Add Archive Mail"));
setWindowTitle(i18nc("@title:window", "Add Archive Mail"));
}
setModal(true);
setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
......
......@@ -42,7 +42,7 @@ static const char s_fdo_notifications_path[] = "/org/freedesktop/Notifications";
FollowUpReminderNoAnswerDialog::FollowUpReminderNoAnswerDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Follow Up Reminder"));
setWindowTitle(i18nc("@title:window", "Follow Up Reminder"));
setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -64,7 +64,7 @@ FilterLogDialog::FilterLogDialog(QWidget *parent)
: QDialog(parent)
, mIsInitialized(false)
{
setWindowTitle(i18n("Filter Log Viewer"));
setWindowTitle(i18nc("@title:window", "Filter Log Viewer"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this);
mUser1Button = new QPushButton(this);
......
......@@ -34,7 +34,7 @@
SendLaterConfigureDialog::SendLaterConfigureDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Configure"));
setWindowTitle(i18nc("@title:window", "Configure"));
setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, this);
......
......@@ -92,7 +92,7 @@ UnifiedMailboxEditor::UnifiedMailboxEditor(UnifiedMailbox *mailbox, const KShare
, mMailbox(mailbox)
, mConfig(config)
{
setWindowTitle(i18n("Add an Unified MailBox"));
setWindowTitle(i18nc("@title:window", "Add an Unified MailBox"));
setWindowIcon(QIcon::fromTheme(QStringLiteral("kmail")));
auto l = new QVBoxLayout(this);
......
......@@ -32,7 +32,7 @@ RefreshSettingsAssistant::RefreshSettingsAssistant(QWidget *parent)
: KAssistantDialog(parent)
{
setModal(true);
setWindowTitle(i18n("KMail Refresh Settings"));
setWindowTitle(i18nc("@title:window", "KMail Refresh Settings"));
setStandardButtons(QDialogButtonBox::Cancel | QDialogButtonBox::Help);
resize(640, 480);
Akonadi::ControlGui::widgetNeedsAkonadi(this);
......
......@@ -36,7 +36,7 @@ MessagePropertyDialog::MessagePropertyDialog(QWidget *parent, KTNEFMessage *msg)
mMessage = msg;
QVBoxLayout *mainLayout = new QVBoxLayout(this);
setWindowTitle(i18n("Message Properties"));
setWindowTitle(i18nc("@title:window", "Message Properties"));
mListView = new QTreeWidget(this);
mainLayout->addWidget(mListView);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
......
......@@ -38,7 +38,7 @@
AddEmailToExistingContactDialog::AddEmailToExistingContactDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Select Contact"));
setWindowTitle(i18nc("@title:window", "Select Contact"));
setModal(true);
Akonadi::Session *session = new Akonadi::Session("AddEmailToExistingContactDialog", this);
......
......@@ -36,7 +36,7 @@ using namespace KMail;
KMKnotify::KMKnotify(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Notification"));
setWindowTitle(i18nc("@title:window", "Notification"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
m_comboNotify = new QComboBox(this);
......
......@@ -393,7 +393,7 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg, bool lastSignState
mSplitter->setOpaqueResize(true);
setWindowTitle(i18n("Composer"));
setWindowTitle(i18nc("@title:window", "Composer"));
setMinimumSize(200, 200);
mCustomToolsWidget = new PimCommon::CustomToolsWidgetNg(this);
......
......@@ -30,7 +30,7 @@
PotentialPhishingDetailDialog::PotentialPhishingDetailDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Details"));
setWindowTitle(i18nc("@title:window", "Details"));
QVBoxLayout *topLayout = new QVBoxLayout(this);
setModal(true);
......
......@@ -32,7 +32,7 @@
IdentityAddVcardDialog::IdentityAddVcardDialog(const QStringList &shadowIdentities, QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Create own vCard"));
setWindowTitle(i18nc("@title:window", "Create own vCard"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
......
......@@ -271,7 +271,7 @@ void KeySelectionCombo::onCustomItemSelected(const QVariant &type)
IdentityDialog::IdentityDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Edit Identity"));
setWindowTitle(i18nc("@title:window", "Edit Identity"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, this);
......@@ -871,7 +871,7 @@ bool IdentityDialog::checkFolderExists(const QString &folderID)
void IdentityDialog::setIdentity(KIdentityManagement::Identity &ident)
{
setWindowTitle(i18n("Edit Identity \"%1\"", ident.identityName()));
setWindowTitle(i18nc("@title:window", "Edit Identity \"%1\"", ident.identityName()));
// "General" tab:
mNameEdit->setText(ident.fullName());
......
......@@ -45,13 +45,13 @@ IdentityEditVcardDialog::IdentityEditVcardDialog(const QString &fileName, QWidge
connect(buttonBox, &QDialogButtonBox::rejected, this, &IdentityEditVcardDialog::reject);
if (QFileInfo::exists(fileName)) {
setWindowTitle(i18n("Edit own vCard"));
setWindowTitle(i18nc("@title:window", "Edit own vCard"));
QPushButton *user1Button = new QPushButton;
buttonBox->addButton(user1Button, QDialogButtonBox::ActionRole);
user1Button->setText(i18n("Delete current vCard"));
connect(user1Button, &QPushButton::clicked, this, &IdentityEditVcardDialog::slotDeleteCurrentVCard);
} else {
setWindowTitle(i18n("Create own vCard"));
setWindowTitle(i18nc("@title:window", "Create own vCard"));
}
topLayout->addWidget(mContactEditor);
......
......@@ -47,7 +47,7 @@ NewIdentityDialog::NewIdentityDialog(KIdentityManagement::IdentityManager *manag
: QDialog(parent)
, mIdentityManager(manager)
{
setWindowTitle(i18n("New Identity"));
setWindowTitle(i18nc("@title:window", "New Identity"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help, this);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mOkButton = buttonBox->button(QDialogButtonBox::Ok);
......
......@@ -78,7 +78,7 @@ void CreateNewContactJob::slotCollectionsFetched(KJob *job)
}
if (canCreateItemCollections.isEmpty()) {
QPointer<Akonadi::AgentTypeDialog> dlg = new Akonadi::AgentTypeDialog(mParentWidget);
dlg->setWindowTitle(i18n("Add to Address Book"));
dlg->setWindowTitle(i18nc("@title:window", "Add to Address Book"));
dlg->agentFilterProxyModel()->addMimeTypeFilter(KContacts::Addressee::mimeType());
dlg->agentFilterProxyModel()->addMimeTypeFilter(KContacts::ContactGroup::mimeType());
dlg->agentFilterProxyModel()->addCapabilityFilter(QStringLiteral("Resource"));
......
......@@ -38,7 +38,7 @@ SaveAsFileJob::~SaveAsFileJob()
void SaveAsFileJob::start()
{
QPointer<QFileDialog> dlg = new QFileDialog(mParentWidget);
dlg->setWindowTitle(i18n("Save File as"));
dlg->setWindowTitle(i18nc("@title:window", "Save File as"));
dlg->setAcceptMode(QFileDialog::AcceptSave);
QStringList lst;
if (mHtmlMode) {
......
......@@ -318,7 +318,7 @@ void KMCommand::transferSelectedMsgs()
// command is executed after the MousePressEvent), cf. bug #71761.
if (mCountMsgs > 0) {
mProgressDialog = new QProgressDialog(mParent);
mProgressDialog.data()->setWindowTitle(i18n("Please wait"));
mProgressDialog.data()->setWindowTitle(i18nc("@title:window", "Please wait"));
mProgressDialog.data()->setLabelText(i18np("Please wait while the message is transferred", "Please wait while the %1 messages are transferred", mMsgList.count()));
mProgressDialog.data()->setModal(true);
......
......@@ -1780,7 +1780,7 @@ FolderSelectionDialog *KMMainWidget::selectFromAllFoldersDialog()
void KMMainWidget::slotMoveSelectedMessageToFolder()
{
QPointer<MailCommon::FolderSelectionDialog> dialog(moveOrCopyToDialog());
dialog->setWindowTitle(i18n("Move Messages to Folder"));
dialog->setWindowTitle(i18nc("@title:window", "Move Messages to Folder"));
if (dialog->exec() && dialog) {
const Akonadi::Collection dest = dialog->selectedCollection();
if (dest.isValid()) {
......@@ -1833,7 +1833,7 @@ void KMMainWidget::slotCopyMessagesCompleted(KMCommand *command)
void KMMainWidget::slotCopySelectedMessagesToFolder()
{
QPointer<MailCommon::FolderSelectionDialog> dialog(moveOrCopyToDialog());
dialog->setWindowTitle(i18n("Copy Messages to Folder"));
dialog->setWindowTitle(i18nc("@title:window", "Copy Messages to Folder"));
if (dialog->exec() && dialog) {
const Akonadi::Collection dest = dialog->selectedCollection();
......@@ -2192,7 +2192,7 @@ void KMMainWidget::slotUndo()
void KMMainWidget::slotJumpToFolder()
{
QPointer<MailCommon::FolderSelectionDialog> dialog(selectFromAllFoldersDialog());
dialog->setWindowTitle(i18n("Jump to Folder"));
dialog->setWindowTitle(i18nc("@title:window", "Jump to Folder"));
if (dialog->exec() && dialog) {
Akonadi::Collection collection = dialog->selectedCollection();
if (collection.isValid()) {
......@@ -3588,7 +3588,7 @@ void KMMainWidget::slotAddFavoriteFolder()
return;
}
QPointer<MailCommon::FolderSelectionDialog> dialog(selectFromAllFoldersDialog());
dialog->setWindowTitle(i18n("Add Favorite Folder"));
dialog->setWindowTitle(i18nc("@title:window", "Add Favorite Folder"));
if (dialog->exec() && dialog) {
const Akonadi::Collection collection = dialog->selectedCollection();
if (collection.isValid()) {
......
......@@ -219,7 +219,7 @@ void IncompleteIndexDialog::waitForIndexer()
}
mProgressDialog = new QProgressDialog(this);
mProgressDialog->setWindowTitle(i18n("Indexing"));
mProgressDialog->setWindowTitle(i18nc("@title:window", "Indexing"));
mProgressDialog->setMaximum(mIndexingQueue.size());
mProgressDialog->setValue(0);
mProgressDialog->setLabelText(i18n("Indexing Collections..."));
......
......@@ -75,7 +75,7 @@ SearchWindow::SearchWindow(KMMainWidget *widget, const Akonadi::Collection &coll
: QDialog(nullptr)
, mKMMainWidget(widget)
{
setWindowTitle(i18n("Find Messages"));
setWindowTitle(i18nc("@title:window", "Find Messages"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
......
......@@ -46,7 +46,7 @@ TagSelectDialog::TagSelectDialog(QWidget *parent, int numberOfSelectedMessages,
, mNumberOfSelectedMessages(numberOfSelectedMessages)
, mSelectedItem(selectedItem)
{
setWindowTitle(i18n("Select Tags"));
setWindowTitle(i18nc("@title:window", "Select Tags"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
......
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