From b6ddc2e472c0534377bdf814bf6744567dd4d1de Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 18 Aug 2005 16:17:25 +0000 Subject: [PATCH] * calendar_tools.c: i18n --- webcit/ChangeLog | 4 +++- webcit/calendar_tools.c | 52 +++++++++++++++++++++++++++-------------- 2 files changed, 37 insertions(+), 19 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index eaf39f3e1..a178772dd 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,7 @@ $Log$ +Revision 621.14 2005/08/18 16:17:25 ajc +* calendar_tools.c: i18n + Revision 621.13 2005/08/18 14:36:54 ajc * calendar.c: finished preparing strings for i18n * sysmsgs.c: Save/Cancel buttons now have different element names, so we @@ -2841,4 +2844,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/calendar_tools.c b/webcit/calendar_tools.c index 94e9dffdc..fa8bd9020 100644 --- a/webcit/calendar_tools.c +++ b/webcit/calendar_tools.c @@ -7,14 +7,30 @@ #include "webcit.h" #include "webserver.h" +/* FIXME ... this needs to be internationalized */ char *months[] = { - "January", "February", "March", "April", "May", "June", "July", - "August", "September", "October", "November", "December" + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" }; char *days[] = { - "Sunday", "Monday", "Tuesday", "Wednesday", - "Thursday", "Friday", "Saturday" + "Sunday", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday" }; char *hourname[] = { @@ -71,7 +87,7 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix) { localtime_r(&tt, &tm); } - wprintf("Month: "); + wprintf(_("Month: ")); wprintf("\n"); - wprintf("Day: "); + wprintf(_("Day: ")); wprintf("\n"); - wprintf("Year: "); + wprintf(_("Year: ")); wprintf("\n"); - wprintf("Hour: "); + wprintf(_("Hour: ")); wprintf("\n"); - wprintf("Minute: "); + wprintf(_("Minute: ")); wprintf("