LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] how to set locale globally on Ubuntu system?

[ILUG] how to set locale globally on Ubuntu system?

Pádraig Brady P at draigBrady.com
Fri Jan 5 12:37:06 GMT 2007


John Kinsella wrote:
> Hi.
> It's not a big deal but it would be nice to have European/UK/Irish
> locale so that dates (in thunderbird mail client in particular) are
> dd/mm/yyyy rathe rthan the us mm/dd/yyyy.
> 
> I could bodge up a wrapper with
> 
> #!/bin/sh
>  export LC_TIME=en_GB # or whatever you want
>  <FullPathToYourOriginalThunderbirdCommand>/thunderbird $*
> 
> (from mozillazine)
> 
> but surely better to have *right* locale which should be: en_IE.utf8
> defined globally.
> 
> Present locale is en_US.UTF-8

If you're the only user of the system then the is the way to go.

A quick check of an ubuntu system shows
the default system LANG is configured in the
/etc/default/gdm and /etc/environment files.
Probably you just need to edit the later and reboot.

Another complication (which is enabled by default on ubuntu)
is that the LANGUAGE environment variable takes priority over LANG.
The LANGUAGE variable allows you to specify a list of languages to try
when translating.

There probably is a GUI tool to handle all this...
Yes there is System -> Administration -> Language Selector

> Just putting export LC_TIME=en_IE.utf8 in my .bashrc presumably wont
> affect thunderbird so how do I set LC_TIME globally?

It is a shell script (possibly with the --login parameter)
that runs X etc., so settings in .bashrc should be picked up by everything.
See: `info bash 'Bash Features' 'Bash Startup Files'`
On a Fedora server at least I put different export LANG=lg_CY.charset values
into various ~users/.bashrc files and they were picked up automatically
when they vnc'd in.

Pádraig.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell