diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-01 02:49:55 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-01 02:49:55 +0200 |
commit | a690870e46508d5b81eb1682be542a93682f51a4 (patch) | |
tree | ce690dc52e8a822d33159ba73f04f9754221075c /board.cpp | |
parent | 5c3ba8460a9784acb784337a2c11b5175fd7c011 (diff) | |
download | tapasboard-a690870e46508d5b81eb1682be542a93682f51a4.tar.gz tapasboard-a690870e46508d5b81eb1682be542a93682f51a4.zip |
update translations
Diffstat (limited to 'board.cpp')
-rw-r--r-- | board.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -247,15 +247,15 @@ QString Board::formatDateTime(const QDateTime &dateTime, DateTimePrecisionOption if (precision & (TodayYesterday | RelativeDate)) { if (precision & ShowTime) { const QString time = ldt.time().toString(Qt::DefaultLocaleShortDate); - if (days < 1) { + if (days == 0) { return tr("Today %1").arg(time); - } else if (days <= 1) { + } else if (days == 1) { return tr("Yesterday %1").arg(time); } } else { - if (days < 1) { + if (days == 0) { return tr("Today"); - } else if (days <= 1) { + } else if (days == 1) { return tr("Yesterday"); } } |