Commit 6945578d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add context @title:window

parent 8ee183f5
......@@ -68,7 +68,7 @@ void ImportExportEngine::importContacts()
QPointer<Akonadi::CollectionDialog> dlg = new Akonadi::CollectionDialog(mParentWidget);
dlg->setMimeTypeFilter(mimeTypes);
dlg->setAccessRightsFilter(Akonadi::Collection::CanCreateItem);
dlg->setWindowTitle(i18n("Select Address Book"));
dlg->setWindowTitle(i18nc("@title:window", "Select Address Book"));
dlg->setDescription(
i18n("Select the address book the imported contact(s) shall be saved in:"));
dlg->setDefaultCollection(mDefaultAddressBook);
......@@ -85,7 +85,7 @@ void ImportExportEngine::importContacts()
mNumberElementToImport = mContactsList.count();
if (!mImportProgressDialog) {
mImportProgressDialog = new QProgressDialog(mParentWidget);
mImportProgressDialog->setWindowTitle(i18n("Import Contacts"));
mImportProgressDialog->setWindowTitle(i18nc("@title:window", "Import Contacts"));
mImportProgressDialog->setLabelText(
i18np("Importing one contact to %2", "Importing %1 contacts to %2",
mNumberElementToImport, collection.name()));
......
......@@ -32,7 +32,7 @@ GravatarUpdateDialog::GravatarUpdateDialog(QWidget *parent)
: QDialog(parent)
{
QVBoxLayout *mainLayout = new QVBoxLayout(this);
setWindowTitle(i18n("Check and update Gravatar"));
setWindowTitle(i18nc("@title:window", "Check and update Gravatar"));
mGravatarUpdateWidget = new GravatarUpdateWidget(this);
connect(mGravatarUpdateWidget, &GravatarUpdateWidget::activateDialogButton, this, &GravatarUpdateDialog::slotActivateButton);
mGravatarUpdateWidget->setObjectName(QStringLiteral("gravatarupdatewidget"));
......
......@@ -39,7 +39,7 @@ using namespace KABMergeContacts;
MergeContactsDialog::MergeContactsDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Select Contacts to merge"));
setWindowTitle(i18nc("@title:window", "Select Contacts to merge"));
mButtonBox = new QDialogButtonBox(QDialogButtonBox::Close, this);
mButtonBox->setObjectName(QStringLiteral("buttonbox"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
......
......@@ -39,7 +39,7 @@ using namespace KABMergeContacts;
SearchAndMergeContactDuplicateContactDialog::SearchAndMergeContactDuplicateContactDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Search and Select Duplicate Contacts to merge"));
setWindowTitle(i18nc("@title:window", "Search and Select Duplicate Contacts to merge"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
connect(buttonBox, &QDialogButtonBox::accepted, this, &SearchAndMergeContactDuplicateContactDialog::accept);
......
......@@ -26,7 +26,7 @@
MarkdownConfigureDialog::MarkdownConfigureDialog(QWidget *parent)
: PimCommon::ConfigurePluginDialog(parent)
{
setWindowTitle(i18n("Configure Markdown Plugin"));
setWindowTitle(i18nc("@title:window", "Configure Markdown Plugin"));
initLayout();
}
......
......@@ -29,7 +29,7 @@
MarkdownCreateImageDialog::MarkdownCreateImageDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Add Image"));
setWindowTitle(i18nc("@title:window", "Add Image"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -29,7 +29,7 @@
MarkdownCreateLinkDialog::MarkdownCreateLinkDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Add Link"));
setWindowTitle(i18nc("@title:window", "Add Link"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -28,7 +28,7 @@
MarkdownPreviewDialog::MarkdownPreviewDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Markdown Rendering Preview"));
setWindowTitle(i18nc("@title:window", "Markdown Rendering Preview"));
setAttribute(Qt::WA_DeleteOnClose);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
......
......@@ -25,7 +25,7 @@ ExternalComposerConfigureDialog::ExternalComposerConfigureDialog(QWidget *parent
: PimCommon::ConfigurePluginDialog(parent)
, mConfigureWidget(nullptr)
{
setWindowTitle(i18n("Configure \"External Composer\" Plugin"));
setWindowTitle(i18nc("@title:window", "Configure \"External Composer\" Plugin"));
initLayout();
}
......
......@@ -50,7 +50,7 @@ void InsertSpecialCharacterPluginEditorInterface::exec()
{
if (!mSelectSpecialChar) {
mSelectSpecialChar = new KPIMTextEdit::SelectSpecialCharDialog(parentWidget());
mSelectSpecialChar->setWindowTitle(i18n("Insert Special Character"));
mSelectSpecialChar->setWindowTitle(i18nc("@title:window", "Insert Special Character"));
mSelectSpecialChar->setOkButtonText(i18n("Insert"));
connect(mSelectSpecialChar.data(), &KPIMTextEdit::SelectSpecialCharDialog::charSelected, this, &InsertSpecialCharacterPluginEditorInterface::charSelected);
}
......
......@@ -33,7 +33,7 @@ static const char myConfigGroupName[] = "QuickTextConfigureDialog";
QuickTextConfigureDialog::QuickTextConfigureDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Configure quick text"));
setWindowTitle(i18nc("@title:window", "Configure quick text"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
mQuickTextConfigureWidget = new QuickTextConfigureWidget(this);
......
......@@ -25,7 +25,7 @@ AutomaticAddContactsConfigureDialog::AutomaticAddContactsConfigureDialog(QWidget
: PimCommon::ConfigurePluginDialog(parent)
, mConfigureWidget(nullptr)
{
setWindowTitle(i18n("Configure \"Automatic Add Contacts\" Plugin"));
setWindowTitle(i18nc("@title:window", "Configure \"Automatic Add Contacts\" Plugin"));
initLayout();
}
......
......@@ -116,7 +116,7 @@ void AutomaticAddContactsJob::slotFetchAllCollections(KJob *job)
"You must create an address book before adding a contact. Do you want to create an address book?"),
i18nc("@title:window", "No Address Book Available")) == KMessageBox::Yes) {
QPointer<Akonadi::AgentTypeDialog> dlg = new Akonadi::AgentTypeDialog(nullptr);
dlg->setWindowTitle(i18n("Add Address Book"));
dlg->setWindowTitle(i18nc("@title:window", "Add Address Book"));
dlg->agentFilterProxyModel()->addMimeTypeFilter(KContacts::Addressee::mimeType());
dlg->agentFilterProxyModel()->addMimeTypeFilter(KContacts::ContactGroup::mimeType());
dlg->agentFilterProxyModel()->addCapabilityFilter(QStringLiteral("Resource"));
......
......@@ -27,7 +27,7 @@
CheckBeforeSendUpdateSmtpDialog::CheckBeforeSendUpdateSmtpDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Check SMTP server"));
setWindowTitle(i18nc("@title:window", "Check SMTP server"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -25,7 +25,7 @@ CheckBeforeSendConfigureDialog::CheckBeforeSendConfigureDialog(QWidget *parent)
: PimCommon::ConfigurePluginDialog(parent)
, mConfigureWidget(nullptr)
{
setWindowTitle(i18n("Configure \"Check Before Send Mail\" Plugin"));
setWindowTitle(i18nc("@title:window", "Configure \"Check Before Send Mail\" Plugin"));
initLayout();
}
......
......@@ -30,7 +30,7 @@
CheckDuplicateEmailsDialog::CheckDuplicateEmailsDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Duplicated emails"));
setWindowTitle(i18nc("@title:window", "Duplicated emails"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QLabel *lab = new QLabel(i18n("These emails are duplicated. Do you want to send email?"), this);
lab->setObjectName(QStringLiteral("label"));
......
......@@ -28,7 +28,7 @@
CheckAttachmentDialog::CheckAttachmentDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Check Attachment"));
setWindowTitle(i18nc("@title:window", "Check Attachment"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QLabel *lab = new QLabel(i18n("Do you want to send some attachment?"), this);
......
......@@ -25,7 +25,7 @@ ConfirmAddressConfigureDialog::ConfirmAddressConfigureDialog(QWidget *parent)
: PimCommon::ConfigurePluginDialog(parent)
, mConfigureWidget(nullptr)
{
setWindowTitle(i18n("Configure \"Confirm Email Address\" Plugin"));
setWindowTitle(i18nc("@title:window", "Configure \"Confirm Email Address\" Plugin"));
initLayout();
}
......
......@@ -31,7 +31,7 @@ ConfirmAddressDialog::ConfirmAddressDialog(QWidget *parent)
: QDialog(parent)
, mCurrentIdentity(0)
{
setWindowTitle(i18n("Confirm Addresses"));
setWindowTitle(i18nc("@title:window", "Confirm Addresses"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -31,7 +31,7 @@ ConfirmAddressSimpleStringListEditor::ConfirmAddressSimpleStringListEditor(QWidg
void ConfirmAddressSimpleStringListEditor::addNewEntry()
{
QPointer<ConfirmAddressEmailEntryDialog> dlg = new ConfirmAddressEmailEntryDialog(this);
dlg->setWindowTitle(i18n("Add Value"));
dlg->setWindowTitle(i18nc("@title:window", "Add Value"));
if (dlg->exec()) {
insertNewEntry(dlg->emails());
}
......@@ -42,7 +42,7 @@ QString ConfirmAddressSimpleStringListEditor::modifyEntry(const QString &text)
{
QString newText;
QPointer<ConfirmAddressEmailEntryDialog> dlg = new ConfirmAddressEmailEntryDialog(this);
dlg->setWindowTitle(i18n("Change Value"));
dlg->setWindowTitle(i18nc("@title:window", "Change Value"));
dlg->setValue(text);
if (dlg->exec()) {
newText = dlg->emails();
......
......@@ -28,7 +28,7 @@
GrammalecteConfigDialog::GrammalecteConfigDialog(QWidget *parent, bool disableMessageBox)
: QDialog(parent)
{
setWindowTitle(i18n("Configure Grammalecte"));
setWindowTitle(i18nc("@title:window", "Configure Grammalecte"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -28,7 +28,7 @@
LanguageToolConfigDialog::LanguageToolConfigDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Configure LanguageTool"));
setWindowTitle(i18nc("@title:window", "Configure LanguageTool"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -50,7 +50,7 @@ bool SendMailTransportPlugin::configureTransport(const QString &identifier, Mail
Q_UNUSED(identifier);
QPointer<SendMailConfigDialog> transportConfigDialog
= new SendMailConfigDialog(transport, parent);
transportConfigDialog->setWindowTitle(i18n("Configure account"));
transportConfigDialog->setWindowTitle(i18nc("@title:window", "Configure account"));
bool okClicked = (transportConfigDialog->exec() == QDialog::Accepted);
delete transportConfigDialog;
return okClicked;
......
......@@ -36,7 +36,7 @@
ConfigDialog::ConfigDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Configure Day Numbers"));
setWindowTitle(i18nc("@title:window", "Configure Day Numbers"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
......
......@@ -36,7 +36,7 @@
ConfigDialog::ConfigDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Configure Picture of the Day"));
setWindowTitle(i18nc("@title:window", "Configure Picture of the Day"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
......
......@@ -32,7 +32,7 @@
AttendeeSelector::AttendeeSelector(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Select Attendees"));
setWindowTitle(i18nc("@title:window", "Select Attendees"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QWidget *mainWidget = new QWidget(this);
......
......@@ -33,7 +33,7 @@
DelegateSelector::DelegateSelector(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Select delegate"));
setWindowTitle(i18nc("@title:window", "Select delegate"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QLabel *label = new QLabel(i18n("Delegate:"), this);
......
......@@ -883,7 +883,7 @@ public:
// get comment for tentative acceptance
if (askForComment(status)) {
QPointer<ReactionToInvitationDialog> dlg = new ReactionToInvitationDialog(nullptr);
dlg->setWindowTitle(i18n("Reaction to Invitation"));
dlg->setWindowTitle(i18nc("@title:window", "Reaction to Invitation"));
QString comment;
if (dlg->exec()) {
comment = dlg->comment();
......@@ -1134,7 +1134,7 @@ public:
Incidence::Ptr incidence(stringToIncidence(iCal));
if (askForComment(Attendee::Declined)) {
QPointer<ReactionToInvitationDialog> dlg = new ReactionToInvitationDialog(nullptr);
dlg->setWindowTitle(i18n("Decline Counter Proposal"));
dlg->setWindowTitle(i18nc("@title:window", "Decline Counter Proposal"));
QString comment;
if (dlg->exec()) {
comment = dlg->comment();
......
......@@ -33,7 +33,7 @@ static const char myConfigGroupName[] = "DKIMAuthenticationVerifiedServerDialog"
DKIMAuthenticationVerifiedServerDialog::DKIMAuthenticationVerifiedServerDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Configure Authentication Verified Server"));
setWindowTitle(i18nc("@title:window", "Configure Authentication Verified Server"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -33,7 +33,7 @@ static const char myConfigGroupName[] = "DKIMConfigureDialog";
DKIMConfigureDialog::DKIMConfigureDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Configure DKIM"));
setWindowTitle(i18nc("@title:window", "Configure DKIM"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -33,7 +33,7 @@ static const char myConfigGroupName[] = "DKIMManageRulesDialog";
DKIMManageRulesDialog::DKIMManageRulesDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Configure Rule"));
setWindowTitle(i18nc("@title:window", "Configure Rule"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......
......@@ -36,7 +36,7 @@ static const char myConfigGroupName[] = "DKIMRuleDialog";
DKIMRuleDialog::DKIMRuleDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Add Rule"));
setWindowTitle(i18nc("@title:window", "Add Rule"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->setObjectName(QStringLiteral("mainlayout"));
......@@ -105,7 +105,7 @@ void DKIMRuleDialog::writeConfig()
void DKIMRuleDialog::loadRule(const MessageViewer::DKIMRule &rule)
{
setWindowTitle(i18n("Modify Rule"));
setWindowTitle(i18nc("@title:window", "Modify Rule"));
mRuleWidget->loadRule(rule);
}
......
......@@ -24,7 +24,7 @@
GravatarConfigureSettingsPluginDialog::GravatarConfigureSettingsPluginDialog(QWidget *parent)
: PimCommon::ConfigurePluginDialog(parent)
{
setWindowTitle(i18n("Configure Gravatar"));
setWindowTitle(i18nc("@title:window", "Configure Gravatar"));
initLayout(true);
}
......
......@@ -26,7 +26,7 @@
ViewerPluginExternalConfigureDialog::ViewerPluginExternalConfigureDialog(QWidget *parent)
: PimCommon::ConfigurePluginDialog(parent)
{
setWindowTitle(i18n("Configure \"External Script\" Plugin"));
setWindowTitle(i18nc("@title:window", "Configure \"External Script\" Plugin"));
initLayout();
buttonBox()->button(QDialogButtonBox::RestoreDefaults)->hide();
}
......
......@@ -29,7 +29,7 @@
ViewerPluginExternalEditDialog::ViewerPluginExternalEditDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Add or Modify External Script"));
setWindowTitle(i18nc("@title:window", "Add or Modify External Script"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
mEditWidget = new ViewerPluginExternalEditWidget(this);
......
......@@ -36,7 +36,7 @@ using namespace AdBlock;
AdBlockAddSubscriptionDialog::AdBlockAddSubscriptionDialog(const QStringList &excludeList, QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Add subscription"));
setWindowTitle(i18nc("@title:window", "Add subscription"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QWidget *w = new QWidget;
......
......@@ -32,7 +32,7 @@ using namespace AdBlock;
AdBlockBlockableItemsDialog::AdBlockBlockableItemsDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Blockable Items"));
setWindowTitle(i18nc("@title:window", "Blockable Items"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
......
......@@ -32,7 +32,7 @@ AdBlockCreateFilterDialog::AdBlockCreateFilterDialog(QWidget *parent)
: QDialog(parent)
, mCurrentType(AdBlockBlockableItemsWidget::None)
{
setWindowTitle(i18n("Create Filter"));
setWindowTitle(i18nc("@title:window", "Create Filter"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
......
......@@ -29,7 +29,7 @@ using namespace AdBlock;
AdblockPluginUrlInterceptorConfigureDialog::AdblockPluginUrlInterceptorConfigureDialog(QWidget *parent)
: PimCommon::ConfigurePluginDialog(parent)
{
setWindowTitle(i18n("Configure AdBlock Plugin"));
setWindowTitle(i18nc("@title:window", "Configure AdBlock Plugin"));
initLayout();
}
......
......@@ -43,7 +43,7 @@ AdBlockShowListDialog::AdBlockShowListDialog(bool showDeleteBrokenList, QWidget
, mTemporaryFile(nullptr)
, mUser1Button(nullptr)
{
setWindowTitle(i18n("Show adblock list"));
setWindowTitle(i18nc("@title:window", "Show adblock list"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this);
connect(buttonBox, &QDialogButtonBox::rejected, this, &AdBlockShowListDialog::reject);
......
......@@ -98,7 +98,7 @@ void EmailLineEdit::slotSelectEmail()
} else {
dlg.reset(new Akonadi::EmailAddressSelectionDialog(this));
}
dlg->setWindowTitle(i18n("Select Emails"));
dlg->setWindowTitle(i18nc("@title:window", "Select Emails"));
dlg->view()->view()->setSelectionMode(multiSelection() ? QAbstractItemView::MultiSelection : QAbstractItemView::SingleSelection);
connect(dlg.get(), &Akonadi::AbstractEmailAddressSelectionDialog::insertAddresses, this, &EmailLineEdit::insertAddresses);
if (dlg->exec()) {
......
......@@ -31,7 +31,7 @@
SelectImapFolderDialog::SelectImapFolderDialog(const KSieveUi::SieveImapAccountSettings &account, QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Select IMAP folder"));
setWindowTitle(i18nc("@title:window", "Select IMAP folder"));
QVBoxLayout *layout = new QVBoxLayout(this);
mSelectImapFolderWidget = new SelectImapFolderWidget(account, 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