Commit 5d26a99f authored by David Jarvie's avatar David Jarvie
Browse files

Improve i18n context

parent c24dd10b
......@@ -784,7 +784,7 @@ bool importAlarms(Resource& resource, QWidget* parent)
parent,
i18nc("@title:window", "Import Calendar Files"),
lastImportUrl,
QStringLiteral("%1 (*.ics *.vcs)").arg(i18nc("@info", "Calendar Files")));
QStringLiteral("%1 (*.ics *.vcs);;%2 (*)").arg(i18nc("@item:inlistbox File type selection filter", "Calendar Files")).arg(i18nc("@item:inlistbox File type selection filter", "All Files")));
if (urls.isEmpty())
return false;
lastImportUrl = urls[0].adjusted(QUrl::RemoveFilename);
......@@ -836,7 +836,7 @@ bool exportAlarms(const KAEvent::List& events, QWidget* parent)
{
bool append;
QString file = FileDialog::getSaveFileName(lastExportUrl,
QStringLiteral("*.ics|%1").arg(i18nc("@info", "Calendar Files")),
QStringLiteral("*.ics|%1").arg(i18nc("@item:inlistbox File type selection filter", "Calendar Files")),
parent, i18nc("@title:window", "Choose Export Calendar"),
&append);
if (file.isEmpty())
......
......@@ -261,7 +261,7 @@ DirResourceImportTypeWidget::DirResourceImportTypeWidget(CalEvent::Type alarmTyp
connect(mUi->optionGroup, QOverload<int, bool>::of(&QButtonGroup::buttonToggled), this, &DirResourceImportTypeWidget::importTypeSelected);
mUi->pathRequester->setMode(KFile::File);
mUi->pathRequester->setFilter(QStringLiteral("*.ics|%1").arg(i18nc("@item:inlistbox", "Calendar Files")));
mUi->pathRequester->setFilter(QStringLiteral("*.ics|%1").arg(i18nc("@item:inlistbox File type selection filter", "Calendar Files")));
mUi->statusLabel->setText(QString());
mUi->pathRequester->setFocus();
mUi->pathRequester->installEventFilter(this);
......
......@@ -49,7 +49,7 @@ SingleFileResourceConfigDialog::SingleFileResourceConfigDialog(bool create, QWid
mUi->alarmTypeLabel->setVisible(false);
mUi->pathRequester->setMode(KFile::File);
mUi->pathRequester->setFilter(QStringLiteral("*.ics|%1").arg(i18nc("@item:inlistbox", "Calendar Files")));
mUi->pathRequester->setFilter(QStringLiteral("*.ics|%1").arg(i18nc("@item:inlistbox File type selection filter", "Calendar Files")));
mUi->pathRequester->setFocus();
mUi->statusLabel->setText(QString());
connect(mUi->pathRequester, &KUrlRequester::textChanged, this, &SingleFileResourceConfigDialog::validate);
......
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