Commit 0bfc1e5e authored by Alexander Potashev's avatar Alexander Potashev
Browse files

i18n: Fix wording and typos in various user-visible messages

Test Plan: it compiles

Reviewers: mlaurent

Reviewed By: mlaurent

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D26005
parent c775f765
......@@ -136,7 +136,7 @@ void SieveAction::unknownTagValue(const QString &tagValue, QString &error)
void SieveAction::tooManyArguments(const QStringRef &tagName, int index, int maxValue, QString &error)
{
error += i18n("Too many argument found for \"%1\", max value is %2, number of value found %3 for %4", name(), maxValue, index, *tagName.string()) + QLatin1Char('\n');
error += i18n("Too many arguments found for \"%1\", max value is %2, number of value found %3 for %4", name(), maxValue, index, *tagName.string()) + QLatin1Char('\n');
}
void SieveAction::serverDoesNotSupportFeatures(const QString &feature, QString &error)
......
......@@ -38,22 +38,22 @@ SieveEditorParsingMissingFeatureWarning::SieveEditorParsingMissingFeatureWarning
switch (type) {
case TextEditor:
{
QAction *action = new QAction(i18n("Switch in graphical mode"), this);
QAction *action = new QAction(i18n("Switch to Graphical Mode"), this);
connect(action, &QAction::triggered, this, &SieveEditorParsingMissingFeatureWarning::slotSwitchInGraphicalMode);
addAction(action);
action = new QAction(i18n("Keep in text mode"), this);
action = new QAction(i18n("Stay in Text Mode"), this);
connect(action, &QAction::triggered, this, &SieveEditorParsingMissingFeatureWarning::slotInActualMode);
addAction(action);
break;
}
case GraphicEditor:
{
QAction *action = new QAction(i18n("Switch in text mode"), this);
QAction *action = new QAction(i18n("Switch to Text Mode"), this);
connect(action, &QAction::triggered, this, &SieveEditorParsingMissingFeatureWarning::slotSwitchInTextMode);
addAction(action);
action = new QAction(i18n("Keep in Graphical mode"), this);
action = new QAction(i18n("Stay in Graphical Mode"), this);
connect(action, &QAction::triggered, this, &SieveEditorParsingMissingFeatureWarning::slotInActualMode);
addAction(action);
break;
......
......@@ -84,7 +84,7 @@ void ParseUserScriptJob::slotGetResult(KManageSieve::SieveJob *job, bool success
if (result) {
emitSuccess(lst);
} else {
emitError(i18n("Script parsing error"));
emitError(i18n("Script parsing error."));
}
}
......
......@@ -156,7 +156,7 @@ void SieveScriptDebuggerFrontEndWidget::slotDebugScript()
QTemporaryFile *temporaryFile = new QTemporaryFile();
if (!temporaryFile->open()) {
mSieveScriptDebuggerWarning->setErrorMessage(i18n("Impossible to open temporary file."));
mSieveScriptDebuggerWarning->setErrorMessage(i18n("Failed to open temporary file."));
delete temporaryFile;
return;
}
......
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