Commit 7973a373 authored by Glen Ditchfield's avatar Glen Ditchfield 🐛
Browse files

Add i18n

parent 19cf95e2
Pipeline #172669 passed with stage
in 2 minutes and 11 seconds
......@@ -186,9 +186,9 @@ void MonthGraphicsView::drawBackground(QPainter *p, const QRectF &rect)
static_cast<int>(mScene->sceneRect().width()),
static_cast<int>(mScene->headerHeight() - dayLabelsHeight)),
Qt::AlignCenter,
QStringLiteral("%1 %2")
.arg(QLocale().standaloneMonthName(dayInMonth.month(), QLocale::LongFormat))
.arg(dayInMonth.year()));
i18nc("monthname year", "%1 %2",
QLocale().standaloneMonthName(dayInMonth.month(), QLocale::LongFormat),
QString::number(dayInMonth.year())));
font.setPointSize(dayLabelsHeight - 10);
p->setFont(font);
......
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