Commit 9844247d authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

NavBar: Use standaloneMonthName instead of monthName

Summary: In catalan (and i'm sure other languages) monthName returns "of $month" so for this chooser we actually want to use standaloneMonthName

Reviewers: winterz

Reviewed By: winterz

Subscribers: winterz, kde-pim

Tags: #kde_pim

Differential Revision:
parent e0dcb393
......@@ -129,7 +129,7 @@ void NavigatorBar::selectDates(const KCalendarCore::DateList &dateList)
// set the label text at the top of the navigator
mMonth->setText(i18nc("monthname", "%1",
QLocale().monthName(mDate.month(), QLocale::LongFormat)));
QLocale().standaloneMonthName(mDate.month(), QLocale::LongFormat)));
mYear->setText(i18nc("4 digit year", "%1",
QLocale().toString(mDate, QLatin1String("yyyy"))));
......@@ -146,7 +146,7 @@ void NavigatorBar::selectMonthFromMenu()
QAction *activateAction = nullptr;
for (int i = 1; i <= months; ++i) {
QAction *monthAction = menu->addAction(QLocale().monthName(i, QLocale::LongFormat));
QAction *monthAction = menu->addAction(QLocale().standaloneMonthName(i, QLocale::LongFormat));
if (i == month) {
activateAction = monthAction;
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