[Kde-imaging] [Bug 196888] Create Calender: Year formatted as 2, 009 on last page of wizard
Nicolas Lécureuil
neoclust at mandriva.org
Thu Jul 16 23:07:37 CEST 2009
https://bugs.kde.org/show_bug.cgi?id=196888
--- Comment #18 from Nicolas Lécureuil <neoclust mandriva org> 2009-07-16 23:07:35 ---
because of line 184, year have to be an int, so i needed to create a new var.
What do you think of:
Index: calendar/calwizard.cpp
===================================================================
--- calendar/calwizard.cpp (révision 995464)
+++ calendar/calwizard.cpp (copie de travail)
@@ -188,7 +188,7 @@
}
else
{
- int year = cSettings_->year();
+ int year = cSettings_->year();
QString extra;
if ((KGlobal::locale()->calendar()->month(QDate::currentDate()) >=
6 &&
@@ -198,8 +198,12 @@
"calendar for<br/>the current year or a year in the "
"past.")+"</b>";
+ KLocale tmpLocale(*KGlobal::locale());
+ tmpLocale.setDateFormat("%Y");
+ QString year_locale = tmpLocale.formatDate(d);
+
wPrintLabel_->setText(i18n("Click Next to start
Printing<br/><br/>"
- "Following months will be printed for year %1:<br/>",
QString::number(year))
+ "Following months will be printed for year %1:<br/>",
year_locale)
+ printList.join(" - ") + extra);
wPrintLabel_->setTextFormat(Qt::RichText);
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kde-imaging
mailing list