From 83a596532ec7b9b8da83137ea18425bd525ba9ac Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 18 Aug 2005 18:33:34 +0000 Subject: [PATCH] * calendar_view.c event.c floors.c graphics.c html2html.c iconbar.c: i18n --- webcit/ChangeLog | 4 ++ webcit/calendar_view.c | 15 ++++++-- webcit/event.c | 86 ++++++++++++++++++++++++++++-------------- webcit/floors.c | 43 ++++++++++++--------- webcit/graphics.c | 26 +++++++------ webcit/html2html.c | 5 ++- 6 files changed, 115 insertions(+), 64 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index a178772dd..bc32369b9 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 621.15 2005/08/18 18:33:34 ajc +* calendar_view.c event.c floors.c graphics.c html2html.c iconbar.c: i18n + Revision 621.14 2005/08/18 16:17:25 ajc * calendar_tools.c: i18n @@ -2844,3 +2847,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index c43cb5b97..062df0c4d 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -10,11 +10,15 @@ #ifndef WEBCIT_WITH_CALENDAR_SERVICE void do_calendar_view(void) { /* stub for non-libical builds */ - wprintf("
Calendar view not available

\n"); + wprintf("
"); + wprintf(_("The calendar view is not available.")); + wprintf("

\n"); } void do_tasks_view(void) { /* stub for non-libical builds */ - wprintf("
Tasks view not available

\n"); + wprintf("
"); + wprintf(_("The tasks view is not available.")); + wprintf("

\n"); } #else /* WEBCIT_WITH_CALENDAR_SERVICE */ @@ -606,8 +610,11 @@ void do_tasks_view(void) { wprintf("
" "\n\n" - "\n" - "\n" + "\n" ); /* Sort them if necessary */ diff --git a/webcit/event.c b/webcit/event.c index 7211a2c7b..dfd3478d4 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -68,7 +68,9 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum) output_headers(1, 1, 2, 0, 0, 0, 0); wprintf("
\n" "
Name of taskDate due
"); + wprintf(_("Name of task")); + wprintf(""); + wprintf(_("Date due")); + wprintf("
" - "Add or edit an event" + ""); + wprintf(_("Add or edit an event")); + wprintf("" "
\n" "
\n
\n" ); @@ -132,7 +134,9 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum) /* Put it in a borderless table so it lines up nicely */ wprintf("\n"); - wprintf("\n"); - wprintf("\n"); - wprintf("\n"); @@ -200,7 +209,9 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum) * the start time (the hour/minute/second will be set to midnight). * Otherwise extract or create it. */ - wprintf("\n"); - wprintf("
Summary\n" + wprintf("
"); + wprintf(_("Summary")); + wprintf("\n" "
Location\n" + wprintf("
"); + wprintf(_("Location")); + wprintf("\n" "
Start\n"); + wprintf("
"); + wprintf(_("Start")); + wprintf("\n"); p = icalcomponent_get_first_property(vevent, ICAL_DTSTART_PROPERTY); if (p != NULL) { t_start = icalproperty_get_dtstart(p); @@ -190,8 +198,9 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum) wprintf("All day event", - (t_start.is_date ? "CHECKED" : "" ) + " %s >%s", + (t_start.is_date ? "CHECKED" : "" ), + _("All day event") ); wprintf("
End\n"); + wprintf("
"); + wprintf(_("End")); + wprintf("\n"); if (t_start.is_date) { t_end = t_start; } @@ -225,7 +236,9 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum) display_icaltimetype_as_webform(&t_end, "dtend"); wprintf("
Notes\n" + wprintf("
"); + wprintf(_("Notes")); + wprintf("\n" "