Ivan Wang schrieb: >> 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.. >
As you discovered the source is written to explicitly use a 12-hour clock and do not simply use the %c, %x and %X formats (which would correspond more closely to date(1) output). With the C locale you usually get the hardcoded strings from the C source unmodified. There typically isn't a translated message (or format) catalog for the C locale. You need to select a locale for which gdm is explicitly localized to use 24-hour date formats. - 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/
