Description of problem: during printing from Cal's Month View (Indic Interface), Calendar is showing Day's Name in English, but during Printing it shows Day's name in Local language (like Hindi Punjabi etc) Version-Release number of selected component (if applicable): evolution-2.8.0-1.fc6 How reproducible: Everytime during printing Steps to Reproduce: 1. Open Evoluton with pa_IN.UTF-8 evolution 2. Goto Calender-Month View 3. Print Actual results: Month's View Cal's Day in Local Lang Expected results: Month's View Cal's Day in should be in Lang in Print or Window should show in Locale Lang Additional info:
Well, numeral characters should uses the native one?
Created attachment 137119 [details] month view
Created attachment 137120 [details] print preview Everything seems working fine here...
Closing as NOTABUG since neither Mayank nor I could reproduce the problem. Feel free to re-open this if you still encounter the problem in Fedora Core 6 or later.
Created attachment 144686 [details] Screenshot - basis for reopening the bug.
Matthew, the original bug report was misleading. I just discussed this bug with Aalam. The bug is... while print-preview for a month view shows days (top right calendar in print-view) shows chars in the locale with which evo was run, the month view shows day names (abbreviations) in english (check screenshot). Another interesting fact is that is that this bug is not for eastern locales (ja, chinese) but for indic locales (I tested with pa_IN, hi_IN, gu_IN - languages with highest translations). Hence, reopening the bug.
Created attachment 144688 [details] Print-preview screenshot with correct indic translations from the locale.
Changing the bug summary to be more apt.
The date navigator in question is an ECalendar and is initiated via e-calendar.[ch] ECalendarItem is the actual navigatable widget in ECalendar. And this bug originates from this code in e_calendar_item_init in e-calendar-item.c --------------------- /* Translators: These are the first characters of each day of the week, 'M' for 'Monday', 'T' for Tuesday etc. */ calitem->days = _("MTWTFSS"); --------------------- The _("MTWTFSS") is set in the UI using ------- for (day = 0; day < 7; day++) { layout_set_day_text (calitem, layout, day_index); ------- and layout_set_day_text simply picks up one char at the day_index value & add it to pango layout. One possible fix is that the code can be modified to pick up values of abbriviated day names from glibc. I would not recommend translating _("MTWTFSS") as in almost all indic langs, day's 1st char would make no sense. Moreover, if this string is picked up from locale data, it would be always correct... as compared to be depending upon translator's translation.
Comment #5 From A S Alam (aalam) on 2007-01-05 01:45 EST [reply] Private 1-Ok not translate, then in Printout there should be only English, as for most (not all) 3 characters are used to represent the Day's name (In print), where there is space is only for 2 character, so those are interMixed 2- otherwise in GUI, only first character should translate (most Indic translation, they use English so that is TOTALLY Translation issue).
Created attachment 144893 [details] Buggy Screenshot The screenshot clealy shows that the current code is not suitable to handle a utf-8 translation for _("MTWTFSS") string.
Following translation was used in Comment 14's screenshot. #. Translators: These are the first characters of each day of the #. week, 'M' for 'Monday', 'T' for Tuesday etc. #: ../widgets/misc/e-calendar-item.c:416 msgid "MTWTFSS" msgstr "सोमंबुगुशुशर"
Following a different strategy to use different strings for day names.
Created attachment 144904 [details] Patch to solve the problem
Created attachment 144905 [details] Screenshot with modified code.
Matthew, please dont build the patch yet as I can see that there's another string marked as #. The first letter of each day of the week starting with Sunday #: ../calendar/gui/weekday-picker.c:319 msgid "SMTWTFS" msgstr "SMTWTFS" So even this might need some work. Also, letme see if I can fix the printing issue as well. Thanks, Mayank
If you happen to know how can I activate the weekday-picker in UI... please do share. :) Mayank
Created attachment 144907 [details] Fixes the weekday-picker.c file also This patch fixes another string translation issue mentioned in previous comment, marking them in such a way that they use the same translation as in e-calendar-item.c file.
Matthew, can you please have a look at the patch in Comment 21? Thanks, Mayank
Since there's a patch, we can try to get this for FC7....
Moving to F8Target
The patch in comment #21 looks reasonable to me, apart from one typo ("abbriviated" should be "abbreviated"), but it is of course a string change, and should be accompanied by a script to convert po files, as far as possible.
I added changed patch to upstream bug.
I have created a new patch which get weekday name from glibc. See: https://bugzilla.redhat.com/show_bug.cgi?id=221244 Milan Crha, can you send this patch to the upstream bug which created by you?
I added other patch to upstream bugzilla (see bugzilla reference below) a month ago, but it wasn't reviewed yet. Also the bug there wasn't created by me, it's there for more than 10 months. My patch fixes some issues in a11y as well. You can see that patch and say what can be improved, if you wish, but I'm sorry, I don't think we will use your patch. (Maybe neither my, it depends on upstream.)
This has been fixed upstream so closing as UPSTREAM. It missed the 2.21.3 release by a hair, but should trickle down to Fedora in subsequent releases.