┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2009-07-01 18:51:17 +0000
committerFrank Reininghaus <[email protected]>2009-07-01 18:51:17 +0000
commit793b6832cea443c6140d35168835a8852c17a2ed (patch)
tree96d7d31172497d87ec416b44d9c54130f1695c69 /src
parent23bd9f0d6668cf56fc2820c5176c74b74fb4b038 (diff)
Pass the "Yesterday (%B, %Y)" string to modifiedTime.toString(), such
that %B and %Y actually get replaced by month and year. Today seemed to be a good day to reproduce and fix this :-) BUG: 179262 svn path=/trunk/KDE/kdebase/apps/; revision=990131
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinmodel.cpp b/src/dolphinmodel.cpp
index 2808736ee..f37452c80 100644
--- a/src/dolphinmodel.cpp
+++ b/src/dolphinmodel.cpp
@@ -250,7 +250,7 @@ QVariant DolphinModel::displayRoleData(const QModelIndex& index) const
const QDate lastMonthDate = currentDate.addMonths(-1);
if (lastMonthDate.year() == modifiedDate.year() && lastMonthDate.month() == modifiedDate.month()) {
if (daysDistance == 1) {
- retString = i18nc("@title:group Date: %B is full month name in current locale, and %Y is full year number", "Yesterday (%B, %Y)");
+ retString = modifiedTime.toString(i18nc("@title:group Date: %B is full month name in current locale, and %Y is full year number", "Yesterday (%B, %Y)"));
} else if (daysDistance <= 7) {
retString = modifiedTime.toString(i18nc("@title:group The week day name: %A, %B is full month name in current locale, and %Y is full year number", "%A (%B, %Y)"));
} else if (daysDistance <= 7 * 2) {