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 102635 - Make hour format easier to localize
Make hour format easier to localize
Status: RESOLVED OBSOLETE
Product: gnome-panel
Classification: Other
Component: clock
2.11.x
Other Linux
: Normal minor
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-01-06 07:15 UTC by keld
Modified: 2020-11-06 20:26 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description keld 2003-01-06 07:15:50 UTC
In gnome-panel there is a 

msgid "%l:%M:%S %p" 

To make it more easily localizable this should be

msgid "%X"

To refer the preferred time format of the locale.

Also whenever date formats are used, please
consider using the preferred date format from the
locale, "%x"
Comment 1 Vincent Untz 2003-01-06 16:13:10 UTC
We're in string freeze => adding GNOMEVER2.3 keyword.
Comment 2 Kjartan Maraas 2003-01-29 20:41:10 UTC
If you use %X there's really no use in marking the format for
translation is there? I vote for unmarking.
Comment 3 Kjartan Maraas 2003-07-08 23:13:22 UTC
Removing myself from cc: since I'm on gnome-panel-maint@bugzilla.gnome.org
Comment 4 Vincent Untz 2003-09-23 14:55:03 UTC
Why is this NEEDINFO ???
Comment 5 Vincent Untz 2003-10-13 16:51:52 UTC
The string "%l:%M:%S %p" is used to allow translators to change the
format for the clock when the user has chosen the 12 hours format.

Using %X would mean that we'd remove the pref for using 12 hours or 24
hours format. Is this something that we wish ? I'm sure lots of user
would complain about that.
Comment 6 Vincent Untz 2003-10-28 16:12:46 UTC
So, err, l10n people: do you think we should remove the option of the
12/24 format and remove the translatable string or do we close this
bug? Or is there any other proposition?
Comment 7 Christian Rose 2003-10-29 01:21:41 UTC
This is problematic, because in most locales where a 24 hour clock is
officially used, there is not even the concept of a 12 hour clock, let
alone a proper way of "translating" such a clock (i.e. the %p does not
have a meaning nor a translation). So the 12 hour option is pure crack
and nonsense in those cases.

On the other hand, in English locales, even ones that have adapted 24
hour clocks for official purposes, a 12 hour clock option is probably
most useful to a lot of people.

So this is clearly a tricky issue...
Comment 8 Vincent Untz 2003-11-14 09:58:44 UTC
Carlos/Danilo: what do you think of this?
Comment 9 Danilo Segan 2003-11-14 14:21:09 UTC
I'm all for using %X and %x, and leave the "tricky" part to locales
(eg. where 24hour is official, yet people are used to 12 hour clock,
they should probably have locale like "en_GB@ampm").

So, I vote for not marking it for translation and using %x and %X.
Comment 10 Sebastien Bacher 2005-07-17 00:48:02 UTC
This bug is still here, Vincent any reason to not change by %X that seems to be
the consensus from the other comments?
Comment 11 Vincent Untz 2005-08-17 16:21:47 UTC
Sébastien: the comment from Christian is a good sum up :-)

I'd say we should wait for AM/PM locales to be created before doing this.
Comment 12 Danilo Segan 2005-08-17 16:29:00 UTC
Even better: develop user-customisable date and time formats, and use those. 
Discussion on locale-list@gnome.org.
Comment 13 Dwayne Bailey 2007-07-02 12:37:56 UTC
Interesting I've just been hit by this one when I wanted to demo the fact that locale files help to set the default locale in an application.  And here we have the clock doing its own thing.

Nobody will make locales, well Windows Vista now has a user locale creator, and GNOME should probably allow some sort of override.  But expected en_ZA@ampm is a long shot.

I'd rather see us move to %X and see the solution pop out from the people affected.  At the moment its affecting many locales that shouldn't have to be adapting.
Comment 14 Wouter Bolsterlee (uws) 2008-03-24 15:58:23 UTC
I'm opposed to using %x and friends, since they're not easily changeable and do not always reflect common practice in a country, even though it's included in the glibc package.
Comment 15 Christian Rose 2008-03-24 19:48:26 UTC
(In reply to comment #14)
> I'm opposed to using %x and friends, since they're not easily changeable and do
> not always reflect common practice in a country, even though it's included in
> the glibc package.

If the locale information is bogus and does not reflect the reality in your country, then that's a bug in your locale, and should be reported, and fixed, as such. It has nothing to do with the matter at hand.
Comment 16 André Klapper 2020-11-06 20:26:09 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old bug reports in Bugzilla which have not seen updates for many years.

If you can still reproduce this issue in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-panel/-/issues/

Thank you for reporting this issue and we are sorry it could not be fixed.