Commit be8ae868 authored by Laurent Montel's avatar Laurent Montel 😁

Add newline after each error message

parent a58c6795
......@@ -165,7 +165,7 @@ QString AutoCreateScriptUtil::fixListValue(QString valueStr)
void AutoCreateScriptUtil::comboboxItemNotFound(const QString &searchItem, const QString &name, QString &error)
{
error += i18n("Cannot find item \"%1\" in widget \"%2\"", searchItem, name);
error += i18n("Cannot find item \"%1\" in widget \"%2\"", searchItem, name) + QLatin1Char('\n');
}
QString AutoCreateScriptUtil::createFullWhatsThis(const QString &help, const QString &href)
......
......@@ -44,12 +44,12 @@ void SelectConvertParameterWidget::setCode(const QStringList &code, QString &err
}
if (code.count() < 2) {
error += i18n("Not enough arguments for SelectConvertParameterWidget. Expected 2 arguments.");
error += i18n("Not enough arguments for SelectConvertParameterWidget. Expected 2 arguments.") + QLatin1Char('\n');
qCDebug(LIBKSIEVE_LOG) << " SelectConvertParameterWidget::setCode parsing error ?";
return;
}
if (code.count() > 2) {
error += i18n("Too many arguments for SelectConvertParameterWidget, \"%1\"", code.count());
error += i18n("Too many arguments for SelectConvertParameterWidget, \"%1\"", code.count()) + QLatin1Char('\n');
qCDebug(LIBKSIEVE_LOG) << " too many argument " << code.count();
}
......
......@@ -110,7 +110,7 @@ bool SieveActionSetVariable::setParamWidgetValue(const QDomElement &element, QWi
QCheckBox *protectAgainstUseRegexp = w->findChild<QCheckBox *>(QStringLiteral("regexprotect"));
protectAgainstUseRegexp->setChecked(true);
} else {
error += QLatin1Char('\n') + i18n("Script needs regex support, but server does not have it.");
error += i18n("Script needs regex support, but server does not have it.") + QLatin1Char('\n');
}
} else {
SelectVariableModifierComboBox *modifier = w->findChild<SelectVariableModifierComboBox *>(QStringLiteral("modifier"));
......
......@@ -381,7 +381,7 @@ void SieveActionWidgetLister::loadScript(const QDomElement &element, bool onlyAc
const QString actionName = e.attribute(QStringLiteral("name"));
if (tagName == QLatin1String("control") && actionName == QLatin1String("if")) {
qCDebug(LIBKSIEVE_LOG) << "We found an loop if in a loop if. Not supported";
error += QLatin1Char('\n') + i18n("We detected a loop if in a loop if. It's not supported") + QLatin1Char('\n');
error += i18n("We detected a loop if in a loop if. It's not supported") + QLatin1Char('\n');
}
if (firstAction) {
firstAction = false;
......
......@@ -104,13 +104,13 @@ void SieveForEveryPartWidget::loadScript(const QDomElement &element, QString &er
if (tagValue == QLatin1String("name")) {
mName->setText(AutoCreateScriptUtil::strValue(e));
} else {
error += i18n("Unknown tagValue \"%1\" during loading loop \"for\"", tagValue);
error += i18n("Unknown tagValue \"%1\" during loading loop \"for\"", tagValue) + QLatin1Char('\n');
qCDebug(LIBKSIEVE_LOG) << " SieveForEveryPartWidget::loadScript unknown tagValue " << tagValue;
}
mForLoop->setChecked(true);
mName->setEnabled(true);
} else {
error += i18n("Unknown tag \"%1\" during loading loop \"for\"", tagName);
error += i18n("Unknown tag \"%1\" during loading loop \"for\"", tagName) + QLatin1Char('\n');
qCDebug(LIBKSIEVE_LOG) << " SieveForEveryPartWidget::loadScript unknown tagName " << tagName;
}
}
......
......@@ -128,7 +128,7 @@ void SieveGlobalVariableActionWidget::loadScript(const QDomElement &element, QSt
if (tagName == QLatin1String("str")) {
mVariableName->setText(e.text());
} else {
error += i18n("Unknown tag \"%1\" during loading of variables.");
error += i18n("Unknown tag \"%1\" during loading of variables.") + QLatin1Char('\n');
qCDebug(LIBKSIEVE_LOG) << " SieveGlobalVariableActionWidget::loadScript unknown tagName " << tagName;
}
}
......
......@@ -69,7 +69,7 @@ void SieveIncludeLocation::setCode(const QString &code, QString &error)
if (index != -1) {
setCurrentIndex(index);
} else {
error += i18n("Unknown location type \"%1\" during parsing includes", code);
error += i18n("Unknown location type \"%1\" during parsing includes", code) + QLatin1Char('\n');
setCurrentIndex(0);
}
}
......
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