After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 270607 - The time in the mail list (italian locale) is in wrong format
The time in the mail list (italian locale) is in wrong format
Status: RESOLVED INVALID
Product: evolution
Classification: Applications
Component: Mailer
2.2.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 304426 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-12-16 09:52 UTC by Gabriele Turchi
Modified: 2013-09-10 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This jpg shows the problem with italian locale (45.03 KB, image/jpeg)
2005-04-17 02:23 UTC, Margarita Manterola
Details
how to get the date format from locale (824 bytes, text/x-csrc)
2005-05-17 05:49 UTC, John McPherson
Details

Description Gabriele Turchi 2004-12-16 09:52:07 UTC
Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:


Steps to reproduce the problem:
1. Use evolution mailer with italian locale (LANG=it_IT.UTF-8)
2. Read a date and time in the mail table
3. 

Actual Results:
The time should be in 24 hours format

Expected Results:
The time in in 12 hours format, without the AM/PM indication

How often does this happen? 
Ever

Additional Information:
Sorry, my english is alpha version...
Comment 1 Gerardo Marin 2004-12-16 20:21:29 UTC

*** This bug has been marked as a duplicate of 205137 ***
Comment 2 Margarita Manterola 2005-02-14 17:11:52 UTC
I really doubt this is the same thing that 5137.  5137 is a wishlist,
while this one is actually a bug.

If the time is displayed as "06:58" no matter if it's AM or PM, then
there's no way for the user to know if it's morning or afternoon.

It should be either "06:58 AM" and "06:58 PM", or "06:58" and "18:58".

Also this happens specifically with the italian locale, while the
other is a general request of more flexibility.

There's also a Debian report for this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=281501
Comment 3 André Klapper 2005-02-15 20:27:14 UTC
adding i18n keyword
Comment 4 Not Zed 2005-02-22 02:01:18 UTC
its in 24 hour format for me, at least in 2.1

probably jsut a translation error.
Comment 5 Margarita Manterola 2005-04-17 02:23:05 UTC
Created attachment 45340 [details]
This jpg shows the problem with italian locale

I'm attaching a jpg that shows the screen of a 2.2.1 evolution, with the
italian locale (it_IT.UTF8) and the bug is still there.
Comment 6 Nagappan Alagappan 2005-05-17 04:56:01 UTC
*** Bug 304426 has been marked as a duplicate of this bug. ***
Comment 7 John McPherson 2005-05-17 05:49:33 UTC
Created attachment 46521 [details]
how to get the date format from locale
Comment 8 John McPherson 2005-05-17 05:51:33 UTC
bug 304426 suggests that evolution is trying to determine the date format from
the .mo gettext translation file, but that will fail for any locales that you
don't have a gettext translation for.

You should use the setlocale() stuff for the date format since that doesn't
depend on having translations present. (see previous attachment)
Comment 9 Jeffrey Stedfast 2005-05-18 14:26:47 UTC
there's probably a good reason it's gotten from the translation files rather
than the locale
Comment 10 John McPherson 2005-05-18 21:14:54 UTC
Well, it would seem to be a good idea to fall back to getting the date format
string from the locale if it isn't in a gettext translation file, since you
don't seem to have translation files for every possible locale. en_NZ and it_IT
locale users don't want to have screwed up dates.
Comment 11 Not Zed 2005-08-08 07:04:10 UTC
translation files are specifically for this purpose.

if the translation is out of date/non-existant then that is the problem with the
translation.

there is no way to know when you're "falling back", or if the string isn't in
the gettext database.

the locale date format string is no good because it isn't flexible enough.