> 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-greete
> r/gdm-clock-widget.c
> > 
> 
> If you look closer, those formats are localized:
>    clock_format = _("%a %l:%M %p");
> e _("...") 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).

Ah, yes, thanks for the hint, I was suspecting that when I saw the comments for 
translators, but not really familiar with that macro.

Tried setenv LANG C via svc for gdm, but that it didn't work (I did svc restart 
gdm though)
I recalled locale C uses 24-hour format, correct? at least running 
/usr/bin/date in C gives 24-hour output..

Ivan.

> 
> 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
> Technology
>        http://reserv.ireland/twiki/bin/view/Argus/
> ient Software     http://www.sun.com/software/sunray/
> Sun Microsystems GmbH
>    http://www.sun.com/software/javadesktopsystem/
> ______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris.org
-- 
This message posted from opensolaris.org

Reply via email to