Fedora Linux Support Community & Resources Center
  #1  
Old 22nd March 2007, 11:46 AM
megaloman Offline
Registered User
 
Join Date: Dec 2004
Posts: 137
Question How to adjust locale settings?

Hello guys,

I have a simple problem - I know how to change global locale settings from en_US to en_GB - it's not a problem, but... now I want to get rid of AM/PM in my time format so my question is simple - how to adjust locale settings? or how to edit locale files?

Code:
$ locale --category-name LC_TIME
shows me my settings, but I don't know how to change them - any ideas?

Thanks in advance
__________________
megaloman.org
Reply With Quote
  #2  
Old 22nd March 2007, 12:31 PM
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
I just posted on how to set the first day of the week to monday, I guess it's the same principle, you modify the locale definition file.

http://www.fedoraforum.org/forum/sho...58&postcount=6

(Note, if glibc is updated it may overwrite the new settings)
Reply With Quote
  #3  
Old 22nd March 2007, 01:39 PM
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
One more point.

The locale files are not easy to read because settings are given as unicode strings, so in the LC_TIME section, for example, the am_pm string definition is given as

Code:
am_pm       "<U0041><U004D>";"<U0050><U004D>"
which translates to "am";"pm", as expected.

This page explains the sections and lists them in the old ascii format, so will be easier to understand.
Reply With Quote
  #4  
Old 22nd March 2007, 02:41 PM
megaloman Offline
Registered User
 
Join Date: Dec 2004
Posts: 137
Thanks for all your help!

I have just solved my problem
__________________
megaloman.org
Reply With Quote
Reply

Tags
adjust, locale, settings

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
after-Installation errors. locale error. unsupported locale settings | Error 17 | etc LinuxNoobie Installation, Upgrades and Live Media 2 29th April 2008 07:35 AM
locale: Cannot set LC_CTYPE to default locale: No such file or directory bbshliu Using Fedora 0 12th March 2008 04:55 PM
httpd locale settings rickard_sv Servers & Networking 1 26th September 2006 10:15 PM
OpenOffice locale settings linuxfj Using Fedora 1 27th February 2005 08:54 PM
locale settings for kde? which files to edit Mat Using Fedora 4 19th August 2004 01:47 AM


Current GMT-time: 19:33 (Wednesday, 23-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat