From 928eecf161ff14c7baeb87142f096e262edf582d Mon Sep 17 00:00:00 2001 From: Pablo Saratxaga Date: Wed, 24 Feb 1999 18:53:31 +0000 Subject: Updated spanish language file; and some i18n improvements svn path=/trunk/; revision=692 --- calendar/gncal-day-panel.c | 6 ++++-- calendar/gncal-week-view.c | 5 +++-- calendar/gui/gncal-day-panel.c | 6 ++++-- calendar/gui/gncal-week-view.c | 5 +++-- calendar/gui/month-view.c | 5 +++-- calendar/gui/year-view.c | 2 +- calendar/month-view.c | 5 +++-- calendar/year-view.c | 2 +- 8 files changed, 22 insertions(+), 14 deletions(-) diff --git a/calendar/gncal-day-panel.c b/calendar/gncal-day-panel.c index ba6ac2bdfe..57df9acc3b 100644 --- a/calendar/gncal-day-panel.c +++ b/calendar/gncal-day-panel.c @@ -5,6 +5,8 @@ * Author: Federico Mena */ +#include +#include #include #include "gncal-day-panel.h" #include "main.h" @@ -209,7 +211,7 @@ update (GncalDayPanel *dpanel, int update_fullday, iCalObject *ico, int flags) } gncal_todo_update (dpanel->todo, ico, flags); - strftime (buf, sizeof (buf), "%a %b %d %Y", localtime (&dpanel->start_of_day)); + strftime (buf, sizeof (buf), _("%a %b %d %Y"), localtime (&dpanel->start_of_day)); gtk_label_set (GTK_LABEL (dpanel->date_label), buf); } @@ -236,7 +238,7 @@ gncal_day_panel_set (GncalDayPanel *dpanel, time_t start_of_day) return; tm = *localtime (&dpanel->start_of_day); - strftime (buf, sizeof (buf), "%a %b %d %Y", &tm); + strftime (buf, sizeof (buf), _("%a %b %d %Y"), &tm); gtk_label_set (GTK_LABEL (dpanel->date_label), buf); gncal_full_day_set_bounds (dpanel->fullday, dpanel->start_of_day, time_day_end (dpanel->start_of_day)); diff --git a/calendar/gncal-week-view.c b/calendar/gncal-week-view.c index 41b2596016..fcfe34aec3 100644 --- a/calendar/gncal-week-view.c +++ b/calendar/gncal-week-view.c @@ -7,6 +7,7 @@ */ #include +#include #include #include #include "gncal-week-view.h" @@ -230,11 +231,11 @@ gncal_week_view_set (GncalWeekView *wview, time_t start_of_week) week_end = time_add_day (week_start, 6); t = localtime (&week_start); - strftime (buf, sizeof (buf), "%a %b %d %Y - ", t); + strftime (buf, sizeof (buf), _("%a %b %d %Y - "), t); len = strlen (buf); t = localtime (&week_end); - strftime (buf + len, sizeof (buf) - len, "%a %b %d %Y", t); + strftime (buf + len, sizeof (buf) - len, _("%a %b %d %Y"), t); gtk_label_set (GTK_LABEL (wview->label), buf); } diff --git a/calendar/gui/gncal-day-panel.c b/calendar/gui/gncal-day-panel.c index ba6ac2bdfe..57df9acc3b 100644 --- a/calendar/gui/gncal-day-panel.c +++ b/calendar/gui/gncal-day-panel.c @@ -5,6 +5,8 @@ * Author: Federico Mena */ +#include +#include #include #include "gncal-day-panel.h" #include "main.h" @@ -209,7 +211,7 @@ update (GncalDayPanel *dpanel, int update_fullday, iCalObject *ico, int flags) } gncal_todo_update (dpanel->todo, ico, flags); - strftime (buf, sizeof (buf), "%a %b %d %Y", localtime (&dpanel->start_of_day)); + strftime (buf, sizeof (buf), _("%a %b %d %Y"), localtime (&dpanel->start_of_day)); gtk_label_set (GTK_LABEL (dpanel->date_label), buf); } @@ -236,7 +238,7 @@ gncal_day_panel_set (GncalDayPanel *dpanel, time_t start_of_day) return; tm = *localtime (&dpanel->start_of_day); - strftime (buf, sizeof (buf), "%a %b %d %Y", &tm); + strftime (buf, sizeof (buf), _("%a %b %d %Y"), &tm); gtk_label_set (GTK_LABEL (dpanel->date_label), buf); gncal_full_day_set_bounds (dpanel->fullday, dpanel->start_of_day, time_day_end (dpanel->start_of_day)); diff --git a/calendar/gui/gncal-week-view.c b/calendar/gui/gncal-week-view.c index 41b2596016..fcfe34aec3 100644 --- a/calendar/gui/gncal-week-view.c +++ b/calendar/gui/gncal-week-view.c @@ -7,6 +7,7 @@ */ #include +#include #include #include #include "gncal-week-view.h" @@ -230,11 +231,11 @@ gncal_week_view_set (GncalWeekView *wview, time_t start_of_week) week_end = time_add_day (week_start, 6); t = localtime (&week_start); - strftime (buf, sizeof (buf), "%a %b %d %Y - ", t); + strftime (buf, sizeof (buf), _("%a %b %d %Y - "), t); len = strlen (buf); t = localtime (&week_end); - strftime (buf + len, sizeof (buf) - len, "%a %b %d %Y", t); + strftime (buf + len, sizeof (buf) - len, _("%a %b %d %Y"), t); gtk_label_set (GTK_LABEL (wview->label), buf); } diff --git a/calendar/gui/month-view.c b/calendar/gui/month-view.c index 2759dada2f..3d695492ba 100644 --- a/calendar/gui/month-view.c +++ b/calendar/gui/month-view.c @@ -6,6 +6,7 @@ */ #include +#include #include #include "eventedit.h" #include "layout.h" @@ -84,7 +85,7 @@ do_quick_view_popup (MonthView *mv, GdkEventButton *event, int day) list = calendar_get_events_in_range (mv->calendar->cal, day_begin_time, day_end_time); - strftime (date_str, sizeof (date_str), "%a %b %d %Y", localtime (&day_begin_time)); + strftime (date_str, sizeof (date_str), _("%a %b %d %Y"), localtime (&day_begin_time)); qv = quick_view_new (mv->calendar, date_str, list); quick_view_do_popup (QUICK_VIEW (qv), event); @@ -751,7 +752,7 @@ month_view_set (MonthView *mv, time_t month) mv->year = tm->tm_year + 1900; mv->month = tm->tm_mon; - strftime (buf, 100, "%B %Y", tm); + strftime (buf, 100, _("%B %Y"), tm); gnome_canvas_item_set (mv->title, "text", buf, diff --git a/calendar/gui/year-view.c b/calendar/gui/year-view.c index a8bc79e6fe..efd22a475f 100644 --- a/calendar/gui/year-view.c +++ b/calendar/gui/year-view.c @@ -304,7 +304,7 @@ do_quick_view_popup (YearView *yv, GdkEventButton *event, int year, int month, i list = calendar_get_events_in_range (yv->calendar->cal, day_start, day_end); - strftime (date_str, sizeof (date_str), "%a %b %d %Y", localtime (&day_start)); + strftime (date_str, sizeof (date_str), _("%a %b %d %Y"), localtime (&day_start)); qv = quick_view_new (yv->calendar, date_str, list); quick_view_do_popup (QUICK_VIEW (qv), event); diff --git a/calendar/month-view.c b/calendar/month-view.c index 2759dada2f..3d695492ba 100644 --- a/calendar/month-view.c +++ b/calendar/month-view.c @@ -6,6 +6,7 @@ */ #include +#include #include #include "eventedit.h" #include "layout.h" @@ -84,7 +85,7 @@ do_quick_view_popup (MonthView *mv, GdkEventButton *event, int day) list = calendar_get_events_in_range (mv->calendar->cal, day_begin_time, day_end_time); - strftime (date_str, sizeof (date_str), "%a %b %d %Y", localtime (&day_begin_time)); + strftime (date_str, sizeof (date_str), _("%a %b %d %Y"), localtime (&day_begin_time)); qv = quick_view_new (mv->calendar, date_str, list); quick_view_do_popup (QUICK_VIEW (qv), event); @@ -751,7 +752,7 @@ month_view_set (MonthView *mv, time_t month) mv->year = tm->tm_year + 1900; mv->month = tm->tm_mon; - strftime (buf, 100, "%B %Y", tm); + strftime (buf, 100, _("%B %Y"), tm); gnome_canvas_item_set (mv->title, "text", buf, diff --git a/calendar/year-view.c b/calendar/year-view.c index a8bc79e6fe..efd22a475f 100644 --- a/calendar/year-view.c +++ b/calendar/year-view.c @@ -304,7 +304,7 @@ do_quick_view_popup (YearView *yv, GdkEventButton *event, int year, int month, i list = calendar_get_events_in_range (yv->calendar->cal, day_start, day_end); - strftime (date_str, sizeof (date_str), "%a %b %d %Y", localtime (&day_start)); + strftime (date_str, sizeof (date_str), _("%a %b %d %Y"), localtime (&day_start)); qv = quick_view_new (yv->calendar, date_str, list); quick_view_do_popup (QUICK_VIEW (qv), event); -- cgit