summaryrefslogtreecommitdiff
path: root/core/pim/datebook/datebookweeklst.cpp
authorgroucho <groucho>2003-01-27 08:49:52 (UTC)
committer groucho <groucho>2003-01-27 08:49:52 (UTC)
commitdd9560a3f08593d99036adfad6636f4aaa52a01b (patch) (side-by-side diff)
tree09ea262ef72f0f45051184531f94fafcd7b33d30 /core/pim/datebook/datebookweeklst.cpp
parent85edd77c0da9c2aec1b57238d010e84db1607363 (diff)
downloadopie-dd9560a3f08593d99036adfad6636f4aaa52a01b.zip
opie-dd9560a3f08593d99036adfad6636f4aaa52a01b.tar.gz
opie-dd9560a3f08593d99036adfad6636f4aaa52a01b.tar.bz2
Changes to make the weeklstview show translated day headers
Addressbookplugin was not translated, however this beast still does not show the translated strings
Diffstat (limited to 'core/pim/datebook/datebookweeklst.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebookweeklst.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp
index 7451abc..9089fe9 100644
--- a/core/pim/datebook/datebookweeklst.cpp
+++ b/core/pim/datebook/datebookweeklst.cpp
@@ -96,16 +96,16 @@ DateBookWeekLstDayHdr::DateBookWeekLstDayHdr(const QDate &d, bool /*onM*/,
const char* name,
WFlags fl )
: DateBookWeekLstDayHdrBase(parent, name, fl) {
date=d;
- static const char *wdays="MTWTFSS";
+ static const char *wdays={"MTWTFSS"};
char day=wdays[d.dayOfWeek()-1];
- label->setText( QString(QChar(day)) + " " +
+ label->setText( QString(QObject::tr(QString(QChar(day)))) + " " +
QString::number(d.day()) );
add->setText("+");
if (d == QDate::currentDate()) {
QPalette pal=label->palette();
pal.setColor(QColorGroup::Foreground, QColor(0,0,255));