author | zautrix <zautrix> | 2004-12-04 22:01:08 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-12-04 22:01:08 (UTC) |
commit | 9c7f3267a1d7db2dbc3bd6384e75cf8ffea1c3df (patch) (unidiff) | |
tree | 0b1707f003049d6c86b001d87e2c3e2525ac471e /korganizer | |
parent | 33a7e96870517ccf4b1daf5bfcbac4755ee535b4 (diff) | |
download | kdepimpi-9c7f3267a1d7db2dbc3bd6384e75cf8ffea1c3df.zip kdepimpi-9c7f3267a1d7db2dbc3bd6384e75cf8ffea1c3df.tar.gz kdepimpi-9c7f3267a1d7db2dbc3bd6384e75cf8ffea1c3df.tar.bz2 |
translation fixes
-rw-r--r-- | korganizer/kowhatsnextview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp index 3801ed4..5f14bfa 100644 --- a/korganizer/kowhatsnextview.cpp +++ b/korganizer/kowhatsnextview.cpp | |||
@@ -199,97 +199,97 @@ void KOWhatsNextView::updateView() | |||
199 | } | 199 | } |
200 | } | 200 | } |
201 | 201 | ||
202 | 202 | ||
203 | if (events.count() > 0) { | 203 | if (events.count() > 0) { |
204 | // mText += "<p></p>"; | 204 | // mText += "<p></p>"; |
205 | // kil.loadIcon("month",KIcon::NoGroup,22,KIcon::DefaultState,&ipath); | 205 | // kil.loadIcon("month",KIcon::NoGroup,22,KIcon::DefaultState,&ipath); |
206 | // mText += "<h2>"; | 206 | // mText += "<h2>"; |
207 | //mText += " <img src=\""; | 207 | //mText += " <img src=\""; |
208 | //mText += ipath; | 208 | //mText += ipath; |
209 | //mText += "\">"; | 209 | //mText += "\">"; |
210 | if ( ! itemAdded ) { | 210 | if ( ! itemAdded ) { |
211 | appendDay ( iii, mEventDate ); | 211 | appendDay ( iii, mEventDate ); |
212 | 212 | ||
213 | } | 213 | } |
214 | // for first day (iii == 0) | 214 | // for first day (iii == 0) |
215 | // we may have syncevents, or events in the past, which maybe should not be diaplayed | 215 | // we may have syncevents, or events in the past, which maybe should not be diaplayed |
216 | // for that reason we cannot append <table> in appendDay () for iii == 0 | 216 | // for that reason we cannot append <table> in appendDay () for iii == 0 |
217 | // we must append it in the first successful call of appendEvent() | 217 | // we must append it in the first successful call of appendEvent() |
218 | Event *ev = events.first(); | 218 | Event *ev = events.first(); |
219 | while(ev) { | 219 | while(ev) { |
220 | //qDebug("+++++event append %s", ev->summary().latin1()); | 220 | //qDebug("+++++event append %s", ev->summary().latin1()); |
221 | if ( true /*!ev->recurrence()->doesRecur() || ev->recursOn( mEventDate)*/) { | 221 | if ( true /*!ev->recurrence()->doesRecur() || ev->recursOn( mEventDate)*/) { |
222 | if ( appendEvent(ev, false , iii!= 0,!itemAdded ) ) | 222 | if ( appendEvent(ev, false , iii!= 0,!itemAdded ) ) |
223 | itemAdded = true; | 223 | itemAdded = true; |
224 | } | 224 | } |
225 | ev = events.next(); | 225 | ev = events.next(); |
226 | } | 226 | } |
227 | 227 | ||
228 | //mText += "</table>\n"; | 228 | //mText += "</table>\n"; |
229 | } | 229 | } |
230 | 230 | ||
231 | todo = todos.first(); | 231 | todo = todos.first(); |
232 | while(todo) { | 232 | while(todo) { |
233 | if ( !todo->isCompleted() &&todo->hasDueDate() && todo->dtDue().date() == mEventDate ) { | 233 | if ( !todo->isCompleted() &&todo->hasDueDate() && todo->dtDue().date() == mEventDate ) { |
234 | if ( ! itemAdded ) { | 234 | if ( ! itemAdded ) { |
235 | appendDay ( iii, mEventDate ); | 235 | appendDay ( iii, mEventDate ); |
236 | //itemAdded = true; | 236 | //itemAdded = true; |
237 | } | 237 | } |
238 | appendEvent(todo, false , iii!= 0,!itemAdded); | 238 | appendEvent(todo, false , iii!= 0,!itemAdded); |
239 | itemAdded = true; | 239 | itemAdded = true; |
240 | } | 240 | } |
241 | todo = todos.next(); | 241 | todo = todos.next(); |
242 | } | 242 | } |
243 | if ( !itemAdded && iii == 0 ) { | 243 | if ( !itemAdded && iii == 0 ) { |
244 | // appendDay ( iii, mEventDate ); | 244 | // appendDay ( iii, mEventDate ); |
245 | //mText += "<table>"; | 245 | //mText += "<table>"; |
246 | // mText += "<b><font color=\"#000080\"><em>"+i18n("No event, nothing to do.") +"</em></font></b>\n"; | 246 | // mText += "<b><font color=\"#000080\"><em>"+i18n("No event, nothing to do.") +"</em></font></b>\n"; |
247 | mText += "<h3 align=\"center\"><font color=\"#008000\"><em>"+i18n("No event, nothing to do. ") +"</em></font></h3>\n"; | 247 | mText += "<h3 align=\"center\"><font color=\"#008000\"><em>"+i18n("No event, nothing to do.") +"</em></font></h3>\n"; |
248 | //mText +="</table>"; | 248 | //mText +="</table>"; |
249 | } | 249 | } |
250 | if ( itemAdded ) | 250 | if ( itemAdded ) |
251 | mText += "</table>\n"; | 251 | mText += "</table>\n"; |
252 | mEventDate = mEventDate.addDays( 1 ); | 252 | mEventDate = mEventDate.addDays( 1 ); |
253 | } | 253 | } |
254 | 254 | ||
255 | int topmostPrios = KOPrefs::instance()->mWhatsNextPrios; | 255 | int topmostPrios = KOPrefs::instance()->mWhatsNextPrios; |
256 | if (todos.count() > 0 && topmostPrios > 0 ) { | 256 | if (todos.count() > 0 && topmostPrios > 0 ) { |
257 | // kil.loadIcon("todo",KIcon::NoGroup,22,KIcon::DefaultState,&ipath); | 257 | // kil.loadIcon("todo",KIcon::NoGroup,22,KIcon::DefaultState,&ipath); |
258 | // mText += "<h2>"; | 258 | // mText += "<h2>"; |
259 | //<img src=\""; | 259 | //<img src=\""; |
260 | // mText += ipath; | 260 | // mText += ipath; |
261 | // mText += "\">"; | 261 | // mText += "\">"; |
262 | // mText += i18n("Overdue To-Do:") + "</h2>\n"; | 262 | // mText += i18n("Overdue To-Do:") + "</h2>\n"; |
263 | 263 | ||
264 | //mText += "<ul>\n"; | 264 | //mText += "<ul>\n"; |
265 | bool gotone = false; | 265 | bool gotone = false; |
266 | int priority = 1; | 266 | int priority = 1; |
267 | int priosFound = 0; | 267 | int priosFound = 0; |
268 | #ifdef DESKTOP_VERSION | 268 | #ifdef DESKTOP_VERSION |
269 | mText +="<p></p>"; | 269 | mText +="<p></p>"; |
270 | #endif | 270 | #endif |
271 | 271 | ||
272 | mText +="<h2><em><font color=\"#000080\">" + i18n("Incomplete Todo:") + "</font></em></h2>\n"; | 272 | mText +="<h2><em><font color=\"#000080\">" + i18n("Incomplete Todo:") + "</font></em></h2>\n"; |
273 | mText += "<ul>\n"; | 273 | mText += "<ul>\n"; |
274 | while (!gotone && priority<6) { | 274 | while (!gotone && priority<6) { |
275 | todo = todos.first(); | 275 | todo = todos.first(); |
276 | while(todo) { | 276 | while(todo) { |
277 | if (!todo->isCompleted() && (todo->priority() == priority) ) { | 277 | if (!todo->isCompleted() && (todo->priority() == priority) ) { |
278 | if ( appendTodo(todo) ) | 278 | if ( appendTodo(todo) ) |
279 | gotone = true; | 279 | gotone = true; |
280 | } | 280 | } |
281 | todo = todos.next(); | 281 | todo = todos.next(); |
282 | } | 282 | } |
283 | if ( gotone ) { | 283 | if ( gotone ) { |
284 | gotone = false; | 284 | gotone = false; |
285 | ++priosFound; | 285 | ++priosFound; |
286 | if ( priosFound == topmostPrios ) | 286 | if ( priosFound == topmostPrios ) |
287 | break; | 287 | break; |
288 | } | 288 | } |
289 | priority++; | 289 | priority++; |
290 | // kdDebug() << "adding the todos..." << endl; | 290 | // kdDebug() << "adding the todos..." << endl; |
291 | } | 291 | } |
292 | mText += "</ul>\n"; | 292 | mText += "</ul>\n"; |
293 | } | 293 | } |
294 | 294 | ||
295 | int replys = 0; | 295 | int replys = 0; |