aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/meeting-time-sel/e-meeting-time-sel-item.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-09-30 23:24:20 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-09-30 23:24:20 +0800
commitcafbcb9183498ec7a445889de68b4a6c8bf16335 (patch)
tree8d5e709016747c6b0ff04b86b982ae45d032b1f3 /widgets/meeting-time-sel/e-meeting-time-sel-item.c
parent3f23fba5e0ed7efd438c57db2e2e6ae30c7cdaa1 (diff)
downloadgsoc2013-evolution-cafbcb9183498ec7a445889de68b4a6c8bf16335.tar.gz
gsoc2013-evolution-cafbcb9183498ec7a445889de68b4a6c8bf16335.tar.zst
gsoc2013-evolution-cafbcb9183498ec7a445889de68b4a6c8bf16335.zip
fixed use of date strings to support i18n better.
2000-09-25 Damon Chaplin <damon@helixcode.com> * e-meeting-time-sel-item.c: * e-meeting-time-sel.c: fixed use of date strings to support i18n better. (e_meeting_time_selector_update_attendees_list_positions): updated to use e_canvas_item_move_absolute() to position the EText items. svn path=/trunk/; revision=5644
Diffstat (limited to 'widgets/meeting-time-sel/e-meeting-time-sel-item.c')
-rw-r--r--widgets/meeting-time-sel/e-meeting-time-sel-item.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/widgets/meeting-time-sel/e-meeting-time-sel-item.c b/widgets/meeting-time-sel/e-meeting-time-sel-item.c
index 54cde8d319..93239f4a5d 100644
--- a/widgets/meeting-time-sel/e-meeting-time-sel-item.c
+++ b/widgets/meeting-time-sel/e-meeting-time-sel-item.c
@@ -420,7 +420,7 @@ e_meeting_time_selector_item_paint_day_top (EMeetingTimeSelectorItem *mts_item,
GdkGC *gc;
GdkFont *font;
gint y, grid_x;
- gchar buffer[128];
+ gchar buffer[128], *format;
gint hour, hour_x, hour_y;
GdkRectangle clip_rect;
@@ -458,11 +458,20 @@ e_meeting_time_selector_item_paint_day_top (EMeetingTimeSelectorItem *mts_item,
next day. */
font = GTK_WIDGET (mts)->style->font;
if (mts->date_format == E_MEETING_TIME_SELECTOR_DATE_FULL)
- g_date_strftime (buffer, 128, "%A, %B %d, %Y", date);
+ /* This is a strftime() format string %A = full weekday name,
+ %B = full month name, %d = month day, %Y = full year. */
+ format = _("%A, %B %d, %Y");
else if (mts->date_format == E_MEETING_TIME_SELECTOR_DATE_ABBREVIATED_DAY)
- g_date_strftime (buffer, 128, "%a %x", date);
+ /* This is a strftime() format string %a = abbreviated weekday
+ name, %m = month number, %d = month day, %Y = full year. */
+ format = _("%a %m/%d/%Y");
else
- g_date_strftime (buffer, 128, "%x", date);
+ /* This is a strftime() format string %m = month number,
+ %d = month day, %Y = full year. */
+ format = _("%m/%d/%Y");
+
+ g_date_strftime (buffer, sizeof (buffer), format, date);
+
clip_rect.x = x;
clip_rect.y = -scroll_y;
clip_rect.width = mts->day_width - 2;