Red Hat Bugzilla – Bug 167101
No am/pm information with locale es_ES
Last modified: 2007-11-30 17:07:20 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050720 Fedora/1.0.6-1.1.fc4 Firefox/1.0.6
Description of problem:
I found this bug first using php: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=167073
Joe Orton suggested I file this bug here. Then I checked /usr/lib/locale/es_ES/LC_TIME and noticed there was no AM/PM abbreviation.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. using php run the following code:
print "Time (es_ES): " . strftime("%I:%M %p") . "<br>\n";
print "Time (en_US): " . strftime("%I:%M %p") . "<br>\n";
Actual Results: Time (es_ES): 05:36
Time (en_US): 05:36 PM
Expected Results: Time (es_ES): 05:36 PM
Time (en_US): 05:36 PM
And is there any, used commonly in Spain?
t_fmt_ampm is empty in es_ES (as well as in more than 50% of other locales),
which means that 12 hour format is not supported by the locale.
And when it is not supported, empty strings for AM and PM are IMHO just fine.
Well, I have lived all my life in Peru, Mexico, Nicaragua, and have been to
Spain a few times, people use AM/PM all the time, in fact, most people don't
understand the 24hr format, i mean, they do understand it, it's just so rarely used.
I very much doubt that anybody in Spain uses am/pm. I have no idea about
Southamerica, but in Europe nobody really uses this format. And for all
Southamerican countries you have to provide prove. Provide pointers to
official publications or newspapers which use the format.
In Nicaragua: goverment: http://www.bcn.gob.ni/ http://www.ineter.gob.ni/
the two main newspapers: http://www.laprensa.com.ni/ http://www.elnuevodiario.com.ni
In Peru: goverment: http://www.congreso.gob.pe/ (all "citaciones" have am/pm)
http://www.pcm.gob.pe/ (all news items have am/pm) newspapers:
And you are right about Spain, people use AM/PM but officially it's the 24hr
format. But anyway, if people are familiar with the AM/PM thing shouldn't it
be included in the locale file?
In Spanish AM/PM are the abbrevations for "antes meridiano" y "pasado meridiano"
so I believe it should be included in all the Spanish locale files. So that
people can use either format.
I made changes to es_NI and es_PE. But I won't change es_ES since it's
completely unnecessary. The result will be in the next rawhide release.
The changes are in glibc-common-2.4.90-17 in rawhide.