]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Pass the "Yesterday (%B, %Y)" string to modifiedTime.toString(), such
authorFrank Reininghaus <frank78ac@googlemail.com>
Wed, 1 Jul 2009 18:51:17 +0000 (18:51 +0000)
committerFrank Reininghaus <frank78ac@googlemail.com>
Wed, 1 Jul 2009 18:51:17 +0000 (18:51 +0000)
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

src/dolphinmodel.cpp

index 2808736eeba61d0f5385eaf9774ecf537298672a..f37452c80dbf938459916f4419876aaa582ecf34 100644 (file)
@@ -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) {