Permalink
Browse files

Translation context change

  • Loading branch information...
nriendeau committed Jul 11, 2013
1 parent 6749fee commit 79f5e465a27271d7e5009a64fc05c7f5e461b6a0
Showing with 4 additions and 3 deletions.
  1. +4 −3 mythtv/libs/libmythbase/mythdate.cpp
@@ -1,4 +1,5 @@
#include <QtGlobal>
#include <QCoreApplication>
#include "mythcorecontext.h"
#include "mythdate.h"
@@ -142,11 +143,11 @@ QString toString(const QDate &date, uint format)
{
QDate now = current().toLocalTime().date();
if ((format & kSimplify) && (now == date))
result = QObject::tr("Today");
result = QCoreApplication::translate("(Common)", "Today");
else if ((format & kSimplify) && (now.addDays(-1) == date))
result = QObject::tr("Yesterday");
result = QCoreApplication::translate("(Common)", "Yesterday");
else if ((format & kSimplify) && (now.addDays(1) == date))
result = QObject::tr("Tomorrow");
result = QCoreApplication::translate("(Common)", "Tomorrow");
}
if (result.isEmpty())

0 comments on commit 79f5e46

Please sign in to comment.