Commit 25085020 authored by Alexander Potashev's avatar Alexander Potashev
Browse files

i18n: Add context "@title:window" to arguments to setWindowTitle()

Test Plan: it compiles

Reviewers: mlaurent, dvratil

Reviewed By: dvratil

Subscribers: dvratil, kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D22516
parent 66c347f5
......@@ -74,7 +74,7 @@ AddHostDialog::AddHostDialog(KLDAP::LdapServer *server, QWidget *parent)
: QDialog(parent)
, d(new KLDAP::AddHostDialogPrivate(this))
{
setWindowTitle(i18n("Add Host"));
setWindowTitle(i18nc("@title:window", "Add Host"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
d->mOkButton = buttonBox->button(QDialogButtonBox::Ok);
......
......@@ -143,7 +143,7 @@ void LdapConfigureWidget::slotEditHost()
KLDAP::LdapServer server = item->server();
KLDAP::AddHostDialog dlg(&server, this);
dlg.setWindowTitle(i18n("Edit Host"));
dlg.setWindowTitle(i18nc("@title:window", "Edit Host"));
if (dlg.exec() && !server.host().isEmpty()) { //krazy:exclude=crashy
item->setServer(server);
......
......@@ -483,7 +483,7 @@ LdapSearchDialog::LdapSearchDialog(QWidget *parent)
: QDialog(parent)
, d(new Private(this))
{
setWindowTitle(i18n("Import Contacts from LDAP"));
setWindowTitle(i18nc("@title:window", "Import Contacts from LDAP"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Cancel, this);
......@@ -877,7 +877,7 @@ void LdapSearchDialog::slotUser2()
// Configure LDAP servers
QPointer<KCMultiDialog> dialog = new KCMultiDialog(this);
dialog->setWindowTitle(i18n("Configure the Address Book LDAP Settings"));
dialog->setWindowTitle(i18nc("@title:window", "Configure the Address Book LDAP Settings"));
dialog->addModule(QStringLiteral("kcmldap.desktop"));
if (dialog->exec()) { //krazy:exclude=crashy
......
......@@ -773,7 +773,7 @@ KPrefsDialog::KPrefsDialog(KConfigSkeleton *prefs, QWidget *parent, bool modal)
, KPrefsWidManager(prefs)
{
setFaceType(List);
setWindowTitle(i18n("Preferences"));
setWindowTitle(i18nc("@title:window", "Preferences"));
setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Apply | QDialogButtonBox::Cancel | QDialogButtonBox::RestoreDefaults);
button(QDialogButtonBox::Ok)->setDefault(true);
setModal(modal);
......
......@@ -54,7 +54,7 @@ CompletionConfigureDialog::CompletionConfigureDialog(QWidget *parent)
: QDialog(parent)
, d(new KPIM::CompletionConfigureDialogPrivate)
{
setWindowTitle(i18n("Configure completion"));
setWindowTitle(i18nc("@title:window", "Configure Completion"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
d->mTabWidget = new QTabWidget(this);
......
......@@ -64,7 +64,7 @@ CompletionOrderEditor::CompletionOrderEditor(KLDAP::LdapClientSearch *ldapSearch
: QDialog(parent)
, d(new KPIM::CompletionOrderEditorPrivate)
{
setWindowTitle(i18n("Edit Completion Order"));
setWindowTitle(i18nc("@title:window", "Edit Completion Order"));
QVBoxLayout *mainLayout = new QVBoxLayout(this);
d->mCompletionOrderWidget = new CompletionOrderWidget(this);
......
......@@ -143,7 +143,7 @@ public:
"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(mParentWidget);
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"));
......
......@@ -171,7 +171,7 @@ public:
"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(mParentWidget);
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"));
......
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