Commit 0496b1bd authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix i18n

parent ff54b64c
Pipeline #99843 canceled with stage
......@@ -648,7 +648,13 @@ AppearancePageHeadersTab::AppearancePageHeadersTab(QWidget *parent)
QString buttonLabel;
if (QString::fromLatin1(label).contains(QLatin1String("%1"))) {
#if KI18N_VERSION < QT_VERSION_CHECK(5, 89, 0)
buttonLabel = i18n(label, DateFormatter::formatCurrentDate(dateDisplayConfig[i].dateDisplay));
#else
buttonLabel = KLocalizedString(dateDisplayConfig[i].displayName)
.subs(DateFormatter::formatCurrentDate(dateDisplayConfig[i].dateDisplay))
.toString(); // i18n(label, DateFormatter::formatCurrentDate(dateDisplayConfig[i].dateDisplay));
#endif
} else {
buttonLabel = i18n(label);
}
......
Supports Markdown
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