GNOME Bugzilla – Bug 250754
LC_TIME locale not used in calender and contacts
Last modified: 2013-09-10 13:51:23 UTC
Description of Problem: The LC_TIME locale doesn't seem to be used in the calender from/to fields and the contacts birthday/anniversary diels of the edit/add dialogs. I use LANG=en_GB.ISO-8859-15 and LC_TIME=nl_NL@euro, so dates should be in format dd-mm-yy. Instead, they are displayed as dd/mm/yy. The locale itself is ok, as "date +%x" outputs "09-11-03" for nov 11th. Also (not sure whether this is related), I get a warning on startup: (evolution:13460): Gdk-WARNING **: locale not supported by Xlib (evolution:13460): Gdk-WARNING **: can not set locale modifiers Everything works fine if I just use LANG=nl_NL@euro (except that alle the text is in Dutch, which I don't like). Steps to reproduce the problem: 1. export LANG=en_GB; export LC_TIME=nl_NL 2. evolution 3. open contacts/new/details and select a birthday or calender/new and look at "start time"
We do mark our strftime strings for translation.
GNOME version Unspecified. Sorry for the noise.
With LANG=tr_TR.UTF-8, adding a new appointment on 5th January (using the date selection widget) gives an appointment on 1st of May. Also selecting a date with a day greater that 12, produces "invalid date value" warning. $ rpm -qa evolution\* evolution-data-server-1.5.3-2 evolution-webcal-2.4.1-2 evolution-2.5.3-1
retargetting from 2.3 to 2.5
The cause of that bug has been pointer by http://err.no/personal/blog/tech/2006-01-25-12-19_misunderstood_i18n e_utf8_strftime() should be changed to use %c instead of _("%m/%d/%Y")
Please, get this in *immediately*, before hard UI freeze. This is a long standing usability issue.
Severity BLOCKER, just for fun. :-)
Pretty please with sugar on top.
Note that there seem to be more occurences of this same problem. A quick grep shows: [bas@matilda]/scratch/bla/evolution-2.4.2.1> grep -lri '%m/%d/%Y' *|egrep '.c$' calendar/gui/e-cell-date-edit-text.c calendar/gui/e-meeting-time-sel-item.c calendar/gui/e-meeting-time-sel.c e-util/e-time-utils.c widgets/misc/e-dateedit.c and even more suspect cases arise when grepping for '%Y' or '%H' by themselves.
Note that using a localized variant for strings with a the hour makes sense for having 12/24 hours format, as described by bug #102635 for gnome-panel
Fix has been committed.
*** Bug 328814 has been marked as a duplicate of this bug. ***
*** Bug 330592 has been marked as a duplicate of this bug. ***
fix was: http://cvs.gnome.org/viewcvs/evolution/widgets/misc/e-dateedit.c?r1=1.51&r2=1.52