Skip to content

Commit

Permalink
Translation context change
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Riendeau committed Jul 11, 2013
1 parent 6749fee commit 79f5e46
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mythtv/libs/libmythbase/mythdate.cpp
@@ -1,4 +1,5 @@
#include <QtGlobal>
#include <QCoreApplication>

#include "mythcorecontext.h"
#include "mythdate.h"
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 79f5e46

Please sign in to comment.