From 32ad6c6cc658d952c9dfa1fcf5857662bcf01c22 Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 27 Jan 2005 12:25:55 +0000 Subject: birthday fixes --- diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index dce95cd..3d16c1a 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt @@ -1194,7 +1194,7 @@ { "Size %1","Größe %1" }, { "New Agendasize: %1","Neue Agendagröße: %1" }, { " (%1 y.)"," (%1 J.)" }, -{ "","" }, +{ "Allday:","Ganztägig:" }, { "","" }, { "","" }, { "","" }, diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp index 4111c5d..57623e6 100644 --- a/korganizer/kowhatsnextview.cpp +++ b/korganizer/kowhatsnextview.cpp @@ -476,6 +476,9 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a if (! ok && ev->type() == "Event") return false; } + bool bDay = false; + if ( ev->categories().contains( i18n("Birthday") ) || ev->categories().contains( i18n("Anniversary") ) ) + bDay = true; tempText += ""; if (ev->type()=="Event") { if (reply) { @@ -530,7 +533,15 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a } } else { - tempText += i18n("Allday:"); + if ( bDay ) { + + if ( ev->categories().contains( i18n("Birthday") )) + tempText += "" + i18n("Birthday") +":"; + else + tempText += "" + i18n("Anniversary")+":"; + } else { + tempText += i18n("Allday:"); + } } } @@ -600,7 +611,7 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a tempText += ev->summary(); else tempText += i18n("-no summary-"); - if ( ev->categories().contains( i18n("Birthday") ) || ev->categories().contains( i18n("Anniversary") ) ) { + if ( bDay ) { noc = ev->getNextOccurence( cdt, &ok ); if ( ok ) { int years = noc.date().year() - ev->dtStart().date().year(); -- cgit v0.9.0.2