Commit 0c6c5271 authored by Volker Krause's avatar Volker Krause

Don't force KUIT markup in Grantlee templates

KUIT markup will either produce plain text with all tags stripped, or Qt
rich text with enclosing <html> tags. Both options are unsuitable for
generating parts of a larger HTML or rich text document.

Fixes 80+ failures in the messageviewer render test.
parent 78505483
......@@ -83,25 +83,25 @@ QString GrantleeKi18nLocalizer::processArguments(const KLocalizedString &kstr, c
QString GrantleeKi18nLocalizer::localizeContextString(const QString &string, const QString &context, const QVariantList &arguments) const
{
const KLocalizedString str = kxi18nc(qPrintable(context), qPrintable(string));
const KLocalizedString str = ki18nc(qPrintable(context), qPrintable(string));
return processArguments(str, arguments);
}
QString GrantleeKi18nLocalizer::localizeString(const QString &string, const QVariantList &arguments) const
{
const KLocalizedString str = kxi18n(qPrintable(string));
const KLocalizedString str = ki18n(qPrintable(string));
return processArguments(str, arguments);
}
QString GrantleeKi18nLocalizer::localizePluralContextString(const QString &string, const QString &pluralForm, const QString &context, const QVariantList &arguments) const
{
const KLocalizedString str = kxi18ncp(qPrintable(context), qPrintable(string), qPrintable(pluralForm));
const KLocalizedString str = ki18ncp(qPrintable(context), qPrintable(string), qPrintable(pluralForm));
return processArguments(str, arguments);
}
QString GrantleeKi18nLocalizer::localizePluralString(const QString &string, const QString &pluralForm, const QVariantList &arguments) const
{
const KLocalizedString str = kxi18np(qPrintable(string), qPrintable(pluralForm));
const KLocalizedString str = ki18np(qPrintable(string), qPrintable(pluralForm));
return processArguments(str, arguments);
}
......
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