Commit 6f278659 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add i18n context

parent 128ed7c0
Pipeline #74567 passed with stage
in 11 minutes and 22 seconds
......@@ -40,7 +40,7 @@ public:
{
auto mainWidget = new QWidget(q);
q->setWindowTitle(mode == ContactEditorDialog::CreateMode ? i18n("New Contact") : i18n("Edit Contact"));
q->setWindowTitle(mode == ContactEditorDialog::CreateMode ? i18nc("@title:window", "New Contact") : i18nc("@title:window", "Edit Contact"));
auto mainLayout = new QVBoxLayout(q);
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, q);
q->connect(buttonBox, &QDialogButtonBox::accepted, q, [this]() {
......
......@@ -73,7 +73,7 @@ ContactGroupEditorDialog::ContactGroupEditorDialog(Mode mode, QWidget *parent)
: QDialog(parent)
, d(new Private(this, mode))
{
setWindowTitle(mode == CreateMode ? i18n("New Contact Group") : i18n("Edit Contact Group"));
setWindowTitle(mode == CreateMode ? i18nc("@title:window", "New Contact Group") : i18nc("@title:window", "Edit Contact Group"));
auto mainLayout = new QVBoxLayout(this);
auto 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