2006-01-25  Behdad Esfahbod  <behdad@gnome.org>

	* gtk/gtkcalendar.c (calendar_paint_week_numbers, calendar_paint_day):
	Use translated strings calendar:week:digits|%d and
	calendar:day:digits|%d to let translators choose localized digits for
	week and day numbers. (bug #317171, Hamed Malek)

Index: gtk/gtkcalendar.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkcalendar.c,v
retrieving revision 1.101
diff -u -p -r1.101 gtkcalendar.c
--- gtk/gtkcalendar.c	11 Jan 2006 03:48:27 -0000	1.101
+++ gtk/gtkcalendar.c	25 Jan 2006 16:25:44 -0000
@@ -2072,7 +2072,17 @@ calendar_paint_week_numbers (GtkCalendar
 			      + calendar->month) % 12 + 1, calendar->day[row][6]);
       g_return_if_fail (result);
 
-      g_snprintf (buffer, sizeof (buffer), "%d", week);
+      /* Translators: this defines whether the week numbers should use
+       * localized digits or the ones used in English (0123...).
+       *
+       * Translate to "calendar:week:digits|%Id" if you want to use localized
+       * digits.  Leave it alone to whatever it is otherwise.
+       *
+       * Note that translating this doesn't guarantee that you get localized
+       * digits.  That needs support from your system and locale definition
+       * too.
+       */
+      g_snprintf (buffer, sizeof (buffer), Q_("calendar:week:digits|%d"), week);
       pango_layout_set_text (layout, buffer, -1);
       pango_layout_get_pixel_extents (layout, NULL, &logical_rect);
 
@@ -2187,7 +2197,17 @@ calendar_paint_day (GtkCalendar *calenda
 	text_color = NORMAL_DAY_COLOR (widget);
     }
 
-  g_snprintf (buffer, sizeof (buffer), "%d", day);
+  /* Translators: this defines whether the day numbers should use
+   * localized digits or the ones used in English (0123...).
+   *
+   * Translate to "calendar:day:digits|%Id" if you want to use localized
+   * digits.  Leave it alone to whatever it is otherwise.
+   *
+   * Note that translating this doesn't guarantee that you get localized
+   * digits.  That needs support from your system and locale definition
+   * too.
+   */
+  g_snprintf (buffer, sizeof (buffer), Q_("calendar:day:digits|%d"), day);
   layout = gtk_widget_create_pango_layout (widget, buffer);
   pango_layout_get_pixel_extents (layout, NULL, &logical_rect);
   
