Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144904 Details for
Bug 206439
[indic] [cal] Abbreviated day names are in english for month view, while they appear in indic lang chars when seen in print-preview/actual-print.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to solve the problem
weekday_bug.patch (text/plain), 4.31 KB, created by
Mayank Jain
on 2007-01-05 14:35:48 UTC
(
hide
)
Description:
Patch to solve the problem
Filename:
MIME Type:
Creator:
Mayank Jain
Created:
2007-01-05 14:35:48 UTC
Size:
4.31 KB
patch
obsolete
>Index: ./widgets/misc/e-calendar-item.c >=================================================================== >RCS file: /cvs/gnome/evolution/widgets/misc/e-calendar-item.c,v >retrieving revision 1.53 >diff -u -8 -p -r1.53 e-calendar-item.c >--- ./widgets/misc/e-calendar-item.c 4 Dec 2006 15:43:45 -0000 1.53 >+++ ./widgets/misc/e-calendar-item.c 5 Jan 2007 14:33:51 -0000 >@@ -32,16 +32,17 @@ > #endif > > #include "e-calendar-item.h" > #include "ea-widgets.h" > > #include <time.h> > #include <string.h> > #include <glib.h> >+#include <glib/gi18n.h> > #include <gtk/gtkmain.h> > #include <gtk/gtkmenu.h> > #include <gtk/gtkmenuitem.h> > #include <gtk/gtklabel.h> > #include <gtk/gtksignal.h> > #include <gdk/gdkkeysyms.h> > #include <libgnome/gnome-i18n.h> > #include <libedataserver/e-data-server-util.h> >@@ -407,19 +408,26 @@ e_calendar_item_init (ECalendarItem *cal > calitem->style_callback_data = NULL; > calitem->style_callback_destroy = NULL; > > calitem->time_callback = NULL; > calitem->time_callback_data = NULL; > calitem->time_callback_destroy = NULL; > > /* Translators: These are the first characters of each day of the >- week, 'M' for 'Monday', 'T' for Tuesday etc. */ >- calitem->days = _("MTWTFSS"); >- >+ week, 'M' for 'Monday', 'T' for Tuesday etc. Please use as small representation >+ for them as possible. Skip the "context-name" part when translating.*/ >+ calitem->days[0] = Q_("context-Monday|M"); >+ calitem->days[1] = Q_("context-Tuesday|T"); >+ calitem->days[2] = Q_("context-Wednesday|W"); >+ calitem->days[3] = Q_("context-Thursday|T"); >+ calitem->days[4] = Q_("context-Friday|F"); >+ calitem->days[5] = Q_("context-Saturday|S"); >+ calitem->days[6] = Q_("context-Sunday|S"); >+ > calitem->signal_emission_idle_id = 0; > } > > > static void > e_calendar_item_destroy (GtkObject *o) > { > ECalendarItem *calitem; >@@ -960,28 +968,17 @@ e_calendar_item_draw (GnomeCanvasItem * > > pango_font_metrics_unref (font_metrics); > } > > > static void > layout_set_day_text (ECalendarItem *calitem, PangoLayout *layout, int day_index) > { >- char *day; >- int char_size = 0; >- >- day = g_utf8_offset_to_pointer (calitem->days, day_index); >- >- /* we use strlen because we actually want to count bytes */ >- if (day_index == 6) >- char_size = strlen (day); >- else >- char_size = strlen (day) - strlen (g_utf8_find_next_char (day, NULL)); >- >- pango_layout_set_text (layout, day, char_size); >+ pango_layout_set_text (layout, calitem->days[day_index], -1); > } > > static void > e_calendar_item_draw_month (ECalendarItem *calitem, > GdkDrawable *drawable, > int x, > int y, > int width, >@@ -1607,28 +1604,17 @@ e_calendar_item_draw (GnomeCanvasItem * > pango_font_metrics_unref (font_metrics); > cairo_destroy (cr); > } > > > static void > layout_set_day_text (ECalendarItem *calitem, PangoLayout *layout, int day_index) > { >- char *day; >- int char_size = 0; >- >- day = g_utf8_offset_to_pointer (calitem->days, day_index); >- >- /* we use strlen because we actually want to count bytes */ >- if (day_index == 6) >- char_size = strlen (day); >- else >- char_size = strlen (day) - strlen (g_utf8_find_next_char (day, NULL)); >- >- pango_layout_set_text (layout, day, char_size); >+ pango_layout_set_text (layout, calitem->days[day_index], -1); > } > > static void > e_calendar_item_draw_month (ECalendarItem *calitem, > GdkDrawable *drawable, > int x, > int y, > int width, >Index: ./widgets/misc/e-calendar-item.h >=================================================================== >RCS file: /cvs/gnome/evolution/widgets/misc/e-calendar-item.h,v >retrieving revision 1.19 >diff -u -8 -p -r1.19 e-calendar-item.h >--- ./widgets/misc/e-calendar-item.h 28 Apr 2005 08:03:47 -0000 1.19 >+++ ./widgets/misc/e-calendar-item.h 5 Jan 2007 14:33:53 -0000 >@@ -211,18 +211,18 @@ struct _ECalendarItem > gboolean selection_set; > gint selection_start_month_offset; > gint selection_start_day; > gint selection_end_month_offset; > gint selection_end_day; > gint selection_real_start_month_offset; > gint selection_real_start_day; > >- /* The first character of each day of the week, e.g. 'MTWTFSS'. */ >- gchar *days; >+ /* A array of string pointers to hold day names (abbriviated to 2 chars) */ >+ gchar *days[7]; > > /* Widths of the day characters. */ > gint day_widths[7]; > > /* Widths of the digits, '0' .. '9'. */ > gint digit_widths[10]; > gint max_digit_width; > gint week_number_digit_widths[10];
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206439
:
137119
|
137120
|
144686
|
144688
|
144893
|
144904
|
144905
|
144907