GNOME Bugzilla – Bug 256905
date title format for printing is wrong (=american style)
Last modified: 2009-07-03 12:18:54 UTC
1°) Open Evolution into a gnome session using french locale (I used utf-8) 2°) Open the calendar 3°) select a daily or weekly range 4°) make a print preview or print the calendar result: the date title is wrong ("12ième Avril, 2004" instead of "12 Avril 2004") it seems to use an English formatting rules, instead the french.
Created attachment 43563 [details] a ps output of the calendar for a day
Created attachment 43564 [details] the ps output for week
Sorry for the spam, I forgot to say that the bug exists is evo-1.4.x
adding "printing" keyword to make printing issues searchable again, finally... sorry for the noise/spam. :-/
in 2.0.2 it's "1 décembre, 2004". the comma between the month and the year really sucks, it's in all languages. :-(
still valid in evolution-2.2.0.0.200503210410-0.snap.ximian.10.1, retargetting to 2.3, changing the summary to a more general one.
still valid in 2.3.5.1, please take care about this one before string freeze takes place. :-/
Apologies for any spam... cc'ing usability-maint on all Evolution usability bugs. Filter on EVO-USABILITY-SPAM to ignore.
still in 2.4.x, retargetting
The bug is still in 2.5.90 and is really annyoying. I'm willing to fix this. can anyone give me any pointer where to look?
philippe, i guess it's somewhere in evolution/calendar/gui/print.c
ok, to be exact: in evolution/calendar/gui/print.c, function "print_day_view" uses the function "format_date" which includes the following line: if ((flags & (DATE_DAY|DATE_YEAR)) == (DATE_DAY|DATE_YEAR)) strcat(fmt, ","); this is exactly the comma that we all see.
*** Bug 337130 has been marked as a duplicate of this bug. ***
Created attachment 73540 [details] [review] Fixed
does this fix the bug? current problem is that it's always "DD M, YYYY". your patch would change that to "DD M YYYY". what about languages that have "M DD YYYY"?
Andre:According to the comment #0 by Baptiste Mille-Mathias,the problem is that in the print preview,the date is not shown correctly.
ushveen: no, please re-read: "12i�me Avril, 2004" instead of "12 Avril 2004". please try to fix the cause instead of the impact. :-)
Created attachment 73609 [details] andre: I used fr_CA.utf8 and fr_BE.utf8,the date was shown correctly. Attaching screenshot. Andre: i used fr_BE.utf8 and fr_CA.utf8,in both,the date is shown correctly.
ushveen: even if, you still have a duplicated whitespace currently. who cares about french *if* there are a million other languages out there which probably still aren't fixed by this patch? :-) (je les aimes, les baguettes, les trottoirs, les roses magnifiques...!)
Note that the the local date format is not respected in more situations than just printing. See bug 348929. The matching bug for Tasks is bug 344516.
Thanks for the bug report, I'm merging it with the more general bug. *** This bug has been marked as a duplicate of 205137 ***