author | groucho <groucho> | 2003-01-27 08:49:52 (UTC) |
---|---|---|
committer | groucho <groucho> | 2003-01-27 08:49:52 (UTC) |
commit | dd9560a3f08593d99036adfad6636f4aaa52a01b (patch) (side-by-side diff) | |
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() { DateBookWeekLstDayHdr::DateBookWeekLstDayHdr(const QDate &d, bool /*onM*/, QWidget* parent, 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)); label->setPalette(pal); 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 \ DEPENDPATH += $(OPIEDIR)/include \ ../ ../library LIBS+= -lqpe -lopie DESTDIR = $(OPIEDIR)/plugins/today TARGET = todayaddressbookplugin +TRANSLATIONS = ../../../../../i18n/de/libtodayaddressbookplugin.ts \ + ../../../../../i18n/xx/libtodayaddressbookplugin.ts \ + ../../../../../i18n/en/libtodayaddressbookplugin.ts \ + ../../../../../i18n/es/libtodayaddressbookplugin.ts \ + ../../../../../i18n/fr/libtodayaddressbookplugin.ts \ + ../../../../../i18n/hu/libtodayaddressbookplugin.ts \ + ../../../../../i18n/ja/libtodayaddressbookplugin.ts \ + ../../../../../i18n/ko/libtodayaddressbookplugin.ts \ + ../../../../../i18n/no/libtodayaddressbookplugin.ts \ + ../../../../../i18n/pl/libtodayaddressbookplugin.ts \ + ../../../../../i18n/pt/libtodayaddressbookplugin.ts \ + ../../../../../i18n/pt_BR/libtodayaddressbookplugin.ts \ + ../../../../../i18n/sl/libtodayaddressbookplugin.ts \ + ../../../../../i18n/zh_CN/libtodayaddressbookplugin.ts \ + ../../../../../i18n/zh_TW/libtodayaddressbookplugin.ts \ + ../../../../../i18n/it/libtodayaddressbookplugin.ts \ + ../../../../../i18n/da/libtodayaddressbookplugin.ts + + 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 @@ #include <qlayout.h> #include <qhbox.h> #include <qtoolbutton.h> #include <qlabel.h> #include <qwhatsthis.h> - AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* name) : TodayConfigWidget(parent, name ) { QVBoxLayout * layout = new QVBoxLayout( this ); layout->setMargin( 20 ); QHBox *box1 = new QHBox( this ); |