LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-17-2008, 12:25 AM   #1
shreks
Member
 
Registered: Aug 2004
Posts: 79

Rep: Reputation: 15
Language Settings in Fedora 9


In Fedora 9, I met a strange problem with i18n language settings. When I chose Chinese language in GDM login manager and logged into Gnome or KDE, I got a locale setting as:

LANG=zh_CN.utf8

Not only LANG but all other locale-related environmental variables have this language setting ending with "utf8". Such setting caused gvim to not be able to load any menu texts, such that the entire menu bar was blank, and an error message showed up in command line:

(gvim:13735): Gtk-WARNING **: Invalid input string

If LANG was set to zh_CN.UTF-8 or en_US.UTF-8, then no error messages were generated and gvim's menu showed up in Chinese or English languages as expected.

So I created $HOME/.i18n:

LANG=zh_CN.UTF-8
LC_MESSAGES=en_US.UTF-8

So that I can type in Chinese but still get English interface in my desktop environment. This is what I did in Fedora 9 and works fine. But in Fedora 9, such settings were partially ignored: LC_MESSAGES works, but LANG doesn't work so that it remains zh_CN.utf8. This is true for both Gnome and KDE.

The strangest thing is that $HOME/.i18n took effects when I login from text mode console, so that all locale-related environmental variables were set correctly.

Therefore there must some difference in initiating locale-related environmental variables between the graphical logging process and the console one.

So my question is how to make $HOME/.i18n works for the graphical logging process and make LANG and other environmental variables take the value ending in "UTF-8". Thanks a lot!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mepis language settings cosm MEPIS 1 11-01-2006 10:26 AM
Is there any way to change the Language settings? Arpad Linux - Newbie 1 03-04-2004 04:05 PM
Confusing language settings powadha Slackware 0 12-17-2003 11:39 AM
Slackware language settings - KDE problems SStorm Slackware 1 10-10-2003 04:49 AM
Language settings in GNOME Aldebaran Linux - Newbie 4 08-16-2003 06:41 PM


All times are GMT -5. The time now is 09:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration