[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] sheets/plugins/calendar: Fix bug 126046 - in InsertCalendar, the start and end dates are
From: Inge Wallin <inge () lysator ! liu ! se>
Date: 2013-06-29 6:49:58
Message-ID: E1Usoys-0001XC-GY () scm ! kde ! org
[Download RAW message or body]
Git commit b2b074a3db177461c8fe2657ce088a5b1abeff61 by Inge Wallin.
Committed on 29/06/2013 at 06:48.
Pushed by ingwa into branch 'master'.
Fix bug 126046 - in InsertCalendar, the start and end dates are not translated
Thanks Chusslove for the tip.
BUG: 126046
M +3 -1 sheets/plugins/calendar/CalendarTool.cpp
http://commits.kde.org/calligra/b2b074a3db177461c8fe2657ce088a5b1abeff61
diff --git a/sheets/plugins/calendar/CalendarTool.cpp b/sheets/plugins/calendar/CalendarTool.cpp
index 913db13..3d9bead 100644
--- a/sheets/plugins/calendar/CalendarTool.cpp
+++ b/sheets/plugins/calendar/CalendarTool.cpp
@@ -116,7 +116,9 @@ void CalendarTool::insertCalendar(const QDate &start, const QDate &end)
int row = marker.y();
int col = marker.x();
int colstart = col; //this is where we get back after each week
- setText(sheet, row, colstart, i18n("Calendar from %1 to %2", start.toString(), end.toString()));
+ setText(sheet, row, colstart, i18n("Calendar from %1 to %2",
+ KGlobal::locale()->formatDate(start),
+ KGlobal::locale()->formatDate(end)));
QDate current(start);
// QDate previous(current);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic