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();
......
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