summaryrefslogtreecommitdiff
authorcniehaus <cniehaus>2002-11-22 11:29:36 (UTC)
committer cniehaus <cniehaus>2002-11-22 11:29:36 (UTC)
commitc185c4f9788a1e3882711efa1b1c11b17fb7ef1d (patch) (side-by-side diff)
tree9f7858cefd87420f50478796239ad3e36414e6bf
parent480284c491e26427c630131a25e56f9ed1d129b2 (diff)
downloadopie-c185c4f9788a1e3882711efa1b1c11b17fb7ef1d.zip
opie-c185c4f9788a1e3882711efa1b1c11b17fb7ef1d.tar.gz
opie-c185c4f9788a1e3882711efa1b1c11b17fb7ef1d.tar.bz2
This is the way tr() should be used. Now even RTL-languages and such
are supported @@ -53,7 +53,7 @@ void DateBookWeekLstHeader::setDate(cons int year,week; calcWeek(d,week,year,onMonday); - labelWeek->setText("W: " + QString::number(week)); + labelWeek->setText(tr( "W: %1" ).arg( ( QString::number(week)) ) ); QDate start=date; QDate stop=start.addDays(6);
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebookweeklst.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp
index 5eefc27..7451abc 100644
--- a/core/pim/datebook/datebookweeklst.cpp
+++ b/core/pim/datebook/datebookweeklst.cpp
@@ -48,17 +48,17 @@ DateBookWeekLstHeader::DateBookWeekLstHeader(bool onM, QWidget* parent,
onMonday=onM;
}
DateBookWeekLstHeader::~DateBookWeekLstHeader(){}
void DateBookWeekLstHeader::setDate(const QDate &d) {
date=d;
int year,week;
calcWeek(d,week,year,onMonday);
- labelWeek->setText("W: " + QString::number(week));
+ labelWeek->setText(tr( "W: %1" ).arg( ( QString::number(week)) ) );
QDate start=date;
QDate stop=start.addDays(6);
labelDate->setText( QString::number(start.day()) + " " +
start.monthName(start.month()) + " - " +
QString::number(stop.day()) + " " +
start.monthName(stop.month()) );
emit dateChanged(year,week);