Ivan Wang schrieb:
> Well, reply to myself, looks like it's not possible to change time format
> with new gdm greeter panel.
> Time format is hard-coded according to:
> http://git.gnome.org/browse/gdm/tree/gui/simple-greeter/gdm-clock-widget.c
>
If you look closer, those formats are localized:
clock_format = _("%a %l:%M %p");
The _("...") is a shorthand for using gettext(3C) to get a localized
format string (there are also translator hints in the preceding
comments, formatted/placed so that some FOSS L10N tools recognize them).
OTOH you are right that there is no separate switch to enable 24-hour
clock display. You need to use a locale that has an appropriately
localized format string.
So now the question remains how to select a locale for the gdm user.
Some options you could try:
- Select a suitable locale in the greeter (also for use as your session
locale)
- Try svccfg (but the "C" locale won't do the job)
- Add a .xprofile file that sets LANG and/or LC_ALL to ~gdm
- Change the system locale (in /etc/default/init)
(I don't have a system using the new gdm at hand, so can't try myself)
- J?rg
--
Joerg Barfurth phone: +49 40 23646662 / x66662
Software Engineer mailto:joerg.barfurth at sun.com
Desktop Technology http://reserv.ireland/twiki/bin/view/Argus/
Thin Client Software http://www.sun.com/software/sunray/
Sun Microsystems GmbH http://www.sun.com/software/javadesktopsystem/