author | groucho <groucho> | 2003-01-27 08:49:52 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-01-27 08:49:52 (UTC) |
commit | dd9560a3f08593d99036adfad6636f4aaa52a01b (patch) (unidiff) | |
tree | 09ea262ef72f0f45051184531f94fafcd7b33d30 | |
parent | 85edd77c0da9c2aec1b57238d010e84db1607363 (diff) | |
download | opie-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
-rw-r--r-- | core/pim/datebook/datebookweeklst.cpp | 4 | ||||
-rw-r--r-- | core/pim/today/plugins/addressbook/addressbook.pro | 19 | ||||
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginconfig.cpp | 1 |
3 files changed, 21 insertions, 3 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 | |||
@@ -94,20 +94,20 @@ void DateBookWeekLstHeader::prevWeek() { | |||
94 | DateBookWeekLstDayHdr::DateBookWeekLstDayHdr(const QDate &d, bool /*onM*/, | 94 | DateBookWeekLstDayHdr::DateBookWeekLstDayHdr(const QDate &d, bool /*onM*/, |
95 | QWidget* parent, | 95 | QWidget* parent, |
96 | const char* name, | 96 | const char* name, |
97 | WFlags fl ) | 97 | WFlags fl ) |
98 | : DateBookWeekLstDayHdrBase(parent, name, fl) { | 98 | : DateBookWeekLstDayHdrBase(parent, name, fl) { |
99 | 99 | ||
100 | date=d; | 100 | date=d; |
101 | 101 | ||
102 | static const char *wdays="MTWTFSS"; | 102 | static const char *wdays={"MTWTFSS"}; |
103 | char day=wdays[d.dayOfWeek()-1]; | 103 | char day=wdays[d.dayOfWeek()-1]; |
104 | 104 | ||
105 | label->setText( QString(QChar(day)) + " " + | 105 | label->setText( QString(QObject::tr(QString(QChar(day)))) + " " + |
106 | QString::number(d.day()) ); | 106 | QString::number(d.day()) ); |
107 | add->setText("+"); | 107 | add->setText("+"); |
108 | 108 | ||
109 | if (d == QDate::currentDate()) { | 109 | if (d == QDate::currentDate()) { |
110 | QPalette pal=label->palette(); | 110 | QPalette pal=label->palette(); |
111 | pal.setColor(QColorGroup::Foreground, QColor(0,0,255)); | 111 | pal.setColor(QColorGroup::Foreground, QColor(0,0,255)); |
112 | label->setPalette(pal); | 112 | label->setPalette(pal); |
113 | 113 | ||
diff --git a/core/pim/today/plugins/addressbook/addressbook.pro b/core/pim/today/plugins/addressbook/addressbook.pro index fd7d786..3ee5bce 100644 --- a/core/pim/today/plugins/addressbook/addressbook.pro +++ b/core/pim/today/plugins/addressbook/addressbook.pro | |||
@@ -13,11 +13,30 @@ INCLUDEPATH += $(OPIEDIR)/include \ | |||
13 | DEPENDPATH += $(OPIEDIR)/include \ | 13 | DEPENDPATH += $(OPIEDIR)/include \ |
14 | ../ ../library | 14 | ../ ../library |
15 | 15 | ||
16 | LIBS+= -lqpe -lopie | 16 | LIBS+= -lqpe -lopie |
17 | 17 | ||
18 | DESTDIR = $(OPIEDIR)/plugins/today | 18 | DESTDIR = $(OPIEDIR)/plugins/today |
19 | TARGET = todayaddressbookplugin | 19 | TARGET = todayaddressbookplugin |
20 | 20 | ||
21 | TRANSLATIONS = ../../../../../i18n/de/libtodayaddressbookplugin.ts \ | ||
22 | ../../../../../i18n/xx/libtodayaddressbookplugin.ts \ | ||
23 | ../../../../../i18n/en/libtodayaddressbookplugin.ts \ | ||
24 | ../../../../../i18n/es/libtodayaddressbookplugin.ts \ | ||
25 | ../../../../../i18n/fr/libtodayaddressbookplugin.ts \ | ||
26 | ../../../../../i18n/hu/libtodayaddressbookplugin.ts \ | ||
27 | ../../../../../i18n/ja/libtodayaddressbookplugin.ts \ | ||
28 | ../../../../../i18n/ko/libtodayaddressbookplugin.ts \ | ||
29 | ../../../../../i18n/no/libtodayaddressbookplugin.ts \ | ||
30 | ../../../../../i18n/pl/libtodayaddressbookplugin.ts \ | ||
31 | ../../../../../i18n/pt/libtodayaddressbookplugin.ts \ | ||
32 | ../../../../../i18n/pt_BR/libtodayaddressbookplugin.ts \ | ||
33 | ../../../../../i18n/sl/libtodayaddressbookplugin.ts \ | ||
34 | ../../../../../i18n/zh_CN/libtodayaddressbookplugin.ts \ | ||
35 | ../../../../../i18n/zh_TW/libtodayaddressbookplugin.ts \ | ||
36 | ../../../../../i18n/it/libtodayaddressbookplugin.ts \ | ||
37 | ../../../../../i18n/da/libtodayaddressbookplugin.ts | ||
38 | |||
39 | |||
21 | 40 | ||
22 | 41 | ||
23 | include ( $(OPIEDIR)/include.pro ) | 42 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp index 8d7bec6..a234236 100644 --- a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp | |||
@@ -22,17 +22,16 @@ | |||
22 | 22 | ||
23 | #include <qlayout.h> | 23 | #include <qlayout.h> |
24 | #include <qhbox.h> | 24 | #include <qhbox.h> |
25 | #include <qtoolbutton.h> | 25 | #include <qtoolbutton.h> |
26 | #include <qlabel.h> | 26 | #include <qlabel.h> |
27 | #include <qwhatsthis.h> | 27 | #include <qwhatsthis.h> |
28 | 28 | ||
29 | 29 | ||
30 | |||
31 | AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* name) | 30 | AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* name) |
32 | : TodayConfigWidget(parent, name ) { | 31 | : TodayConfigWidget(parent, name ) { |
33 | 32 | ||
34 | QVBoxLayout * layout = new QVBoxLayout( this ); | 33 | QVBoxLayout * layout = new QVBoxLayout( this ); |
35 | layout->setMargin( 20 ); | 34 | layout->setMargin( 20 ); |
36 | 35 | ||
37 | QHBox *box1 = new QHBox( this ); | 36 | QHBox *box1 = new QHBox( this ); |
38 | 37 | ||