|
From: | Jim Busser |
Subject: | Re: [Gnumed-devel] Re: Possible solution for altering date formats (Debian)? |
Date: | Wed, 01 Jul 2009 19:24:19 -0700 |
Solved! See below On 1-Jul-09, at 11:45 AM, Karsten Hilbert wrote:
I am not sure of the rationale (i.e. need) to install *all* locales and to consume hundreds of Mb to do so.
no but it is unclear how to set it at the user level and despite that some Debian/Ubuntu postings suggest that the Gnome GUI menus are supposed to provide System > Administration > Language Support but my lenny does not.
I got from to find out which locales on your system have the yyyy-mm-dd date format, run: grep ^d_fmt /usr/share/i18n/locales/* | ascii2uni -qaA | grep '%Y-%m-%d' My hint was at For some reason, the system default (despite having been altered to en_DK.UTF-8 by use of sudo dpkg-reconfigure locales would not be used by other processes like the Xwindow manager and, for reasons I don't understand, even after en_DK.UTF-8 was installed and compiled and available to the regular user account as evidenced by locale -a and even despite declaring in the console LANG=en_DK.UTF-8 and/or LC_TIME=en_DK.UTF-8 and various combination case with and without quotes, using "utf8" and "UTF-8" I could not get the environment and locale to display their acceptance for example locale -a would display LANG=en_CA.UTF-8 LC_CTYPE="en_CA.UTF-8" LC_NUMERIC="en_CA.UTF-8" LC_TIME="en_CA.UTF-8" LC_COLLATE="en_CA.UTF-8" LC_MONETARY="en_CA.UTF-8" LC_MESSAGES="en_CA.UTF-8" LC_PAPER="en_CA.UTF-8" LC_NAME="en_CA.UTF-8" LC_ADDRESS="en_CA.UTF-8" LC_TELEPHONE="en_CA.UTF-8" LC_MEASUREMENT="en_CA.UTF-8" LC_IDENTIFICATION="en_CA.UTF-8" LC_ALL= or the LC_TIME line might be LC_TIME=en_dk.UTF-8 (note absence of quotes) and when in the console I queried the date format I got address@hidden:~$ locale -k d_fmt d_fmt="%d/%m/%y" address@hidden:~$ but what I did was - go to user home ~/ - create (I use pico editor) file .xessionrc - within it put #!/bin/sh LANG=en_DK.UTF-8 - made executable (chmond +x .xessionrc) - restarted computer (maybe logging out & in user would have sufficed) - now witness locale: address@hidden:~$ locale LANG=en_DK.UTF-8 LC_CTYPE="en_DK.UTF-8" LC_NUMERIC="en_DK.UTF-8" LC_TIME="en_DK.UTF-8" LC_COLLATE="en_DK.UTF-8" LC_MONETARY="en_DK.UTF-8" LC_MESSAGES="en_DK.UTF-8" LC_PAPER="en_DK.UTF-8" LC_NAME="en_DK.UTF-8" LC_ADDRESS="en_DK.UTF-8" LC_TELEPHONE="en_DK.UTF-8" LC_MEASUREMENT="en_DK.UTF-8" LC_IDENTIFICATION="en_DK.UTF-8" LC_ALL= address@hidden:~$ - now witness screenshot after a regular ./gm-from-cvs.sh Now I no longer have a problem which was, as a clinician, to be presented with items whose dates are showing as: 02/03/04 04/07/09 11/06/01 when I cannot know if the above have been sorted on some parameter other than date, or even if date but I cannot see whether forward or reverse. |
Kirk YYYY-MM-DD.png
Description: application/applefile
Inbox YYYY-MM-DD.png
Description: application/applefile
[Prev in Thread] | Current Thread | [Next in Thread] |