summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt12
-rw-r--r--korganizer/koeditorgeneralevent.cpp8
-rw-r--r--korganizer/komonthview.cpp2
-rw-r--r--korganizer/kotodoviewitem.cpp10
-rw-r--r--korganizer/kowhatsnextview.cpp6
-rw-r--r--libkdepim/kdateedit.cpp9
6 files changed, 26 insertions, 21 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index 4f29ca3..6587eaa 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -294,7 +294,7 @@
{ "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."},
-{ "Please specify a valid end date, for example '%1'.","Bitte gültiges Enddatum angeben, z.B.'%1'." },
+{ "Please specify a valid end date,\nfor example '%1'.","Bitte gültiges Enddatum angeben,\nz.B.'%1'." },
{ "Please specify a valid start date.","Bitte gültiges Startdatum angeben." },
-{ "Please specify a valid start date, for example '%1'.","Bitte gültiges Startdatum angeben, z.B. '%1'." },
+{ "Please specify a valid start date,\nfor example '%1'.","Bitte gültiges Startdatum angeben,\nz.B. '%1'." },
{ "Please specify a valid start time.","Bitte gültige Startzeit angeben."},
-{ "Please specify a valid start time, for example '%1'.","Bitte gültige Startzeit angeben, z.B. '%1'." },
+{ "Please specify a valid start time,\nfor example '%1'.","Bitte gültige Startzeit angeben,\nz.B. '%1'." },
{ "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" },
@@ -1234,5 +1234,5 @@
{ "Error","Fehler" },
-{ "","" },
-{ "","" },
-{ "","" },
+{ ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." },
+{ "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." },
+{ "Warning","Warnung" },
{ "","" },
diff --git a/korganizer/koeditorgeneralevent.cpp b/korganizer/koeditorgeneralevent.cpp
index adc733b..2a49528 100644
--- a/korganizer/koeditorgeneralevent.cpp
+++ b/korganizer/koeditorgeneralevent.cpp
@@ -399,4 +399,4 @@ bool KOEditorGeneralEvent::validateInput()
KMessageBox::sorry( 0,
- i18n("Please specify a valid start date, for example '%1'.")
- .arg( KGlobal::locale()->formatDate( QDate::currentDate() ) ) );
+ i18n("Please specify a valid start date,\nfor example '%1'.")
+ .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) );
return false;
@@ -406,4 +406,4 @@ bool KOEditorGeneralEvent::validateInput()
KMessageBox::sorry( 0,
- i18n("Please specify a valid end date, for example '%1'.")
- .arg( KGlobal::locale()->formatDate( QDate::currentDate() ) ) );
+ i18n("Please specify a valid end date,\nfor example '%1'.")
+ .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) );
return false;
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index da81586..f595d35 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -555,3 +555,3 @@ void MonthViewCell::insertTodo(Todo *todo)
}
- text += i18n("Td: %1").arg(todo->summary());
+ text += i18n("T: %1").arg(todo->summary());
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp
index 44db209..0e847c2 100644
--- a/korganizer/kotodoviewitem.cpp
+++ b/korganizer/kotodoviewitem.cpp
@@ -273,3 +273,3 @@ bool KOTodoViewItem::isAlternate()
KOTodoViewItem *above = 0;
- above = dynamic_cast<KOTodoViewItem *>(itemAbove());
+ above = static_cast<KOTodoViewItem *>(itemAbove());
m_known = above ? above->m_known : true;
@@ -285,6 +285,6 @@ bool KOTodoViewItem::isAlternate()
{
- item = dynamic_cast<KOTodoViewItem *>(QListViewItem::parent());
+ item = static_cast<KOTodoViewItem *>(QListViewItem::parent());
if (item)
previous = item->m_odd;
- item = dynamic_cast<KOTodoViewItem *>(QListViewItem::parent()->firstChild());
+ item = static_cast<KOTodoViewItem *>(QListViewItem::parent()->firstChild());
}
@@ -292,3 +292,3 @@ bool KOTodoViewItem::isAlternate()
{
- item = dynamic_cast<KOTodoViewItem *>(lv->firstChild());
+ item = static_cast<KOTodoViewItem *>(lv->firstChild());
}
@@ -299,3 +299,3 @@ bool KOTodoViewItem::isAlternate()
item->m_known = true;
- item = dynamic_cast<KOTodoViewItem *>(item->nextSibling());
+ item = static_cast<KOTodoViewItem *>(item->nextSibling());
}
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp
index 10665f4..391b3bb 100644
--- a/korganizer/kowhatsnextview.cpp
+++ b/korganizer/kowhatsnextview.cpp
@@ -617,3 +617,7 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a
if ( ok ) {
- int years = noc.date().year() - ev->dtStart().date().year();
+ int years = 0;
+ if ( ev->type() =="Todo" ) {
+ years = noc.date().year() -((Todo*)ev)->dtDue().date().year();
+ } else
+ years = noc.date().year() - ev->dtStart().date().year();
tempText += i18n(" (%1 y.)"). arg( years );
diff --git a/libkdepim/kdateedit.cpp b/libkdepim/kdateedit.cpp
index c4c0081..2c78ea3 100644
--- a/libkdepim/kdateedit.cpp
+++ b/libkdepim/kdateedit.cpp
@@ -428,6 +428,7 @@ void KDateEdit::lineEnterPressed()
QString text = i18n( "You entered an invalid date!\n Will use current date instead." );
- if ( KMessageBox::warningContinueCancel( 0, text ) == KMessageBox::Continue ) {
- setDate( QDate::currentDate() );
- emit dateChanged( QDate::currentDate() );
- }
+ if ( isVisible() )
+ if ( KMessageBox::warningContinueCancel( 0, text ) == KMessageBox::Continue ) {
+ setDate( QDate::currentDate() );
+ emit dateChanged( QDate::currentDate() );
+ }
}