summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableitems.cpp2
-rw-r--r--core/pim/todo/tableview.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/todo/tableitems.cpp b/core/pim/todo/tableitems.cpp
index 86fe07d..a636de6 100644
--- a/core/pim/todo/tableitems.cpp
+++ b/core/pim/todo/tableitems.cpp
@@ -156,5 +156,5 @@ void DueTextItem::setToDoEvent( const OTodo& ev ) {
QDate today = QDate::currentDate();
m_off = today.daysTo(ev.dueDate() );
- setText( QString::number(m_off) + " day(s) " );
+ setText( tr( "%1 day(s)" ).arg( QString::number(m_off) ) );
}else{
setText("n.d." );
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp
index 2434150..f59971e 100644
--- a/core/pim/todo/tableview.cpp
+++ b/core/pim/todo/tableview.cpp
@@ -380,5 +380,5 @@ void TableView::paintCell(QPainter* p, int row, int col, const QRect& cr, bool
if (task.hasDueDate()) {
int off = QDate::currentDate().daysTo( task.dueDate() );
- text = QString::number(off) + tr(" day(s)");
+ text = tr( "%1 day(s)").arg(QString::number(off));
/*
* set color if not completed