LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   define your LANG environment (https://www.linuxquestions.org/questions/linux-newbie-8/define-your-lang-environment-317272/)

zivs 04-26-2005 08:12 AM

define your LANG environment
 
after installing cedega and trying to run any software through it i get

Quote:

Warning: Language 'en_LV' was not found, retrying without country name... For language 'en' several language ids were found: en_US - 0409; en_GB - 0809; en_AU - 0C09; en_CA - 1009; en_NZ - 1409; en_IE - 1809; en_ZA - 1C09; en_JM - 2009; en_ - 2409; en_BZ - 2809; en_TT - 2C09; Instead of using first in the list, suggest to define your LANG environment variable like this: LANG=en_US
Anyone can tell me what should i do and how can i do? :/

veerain 04-26-2005 08:25 AM

At your console type export LANG=en_us
and then run cedega

IBall 04-26-2005 08:26 AM

In the file ~/.bash_profile, add the following line:
Code:

export LANG=en_US
This will set the LANG variable each time you log in.

Now run the command to make the settings take effect immediately:
Code:

source ~/.bash_profile
I assume en_LV is English-Latvian. It is probably better just to use US "English", en_US.

I hope this helps
--Ian

zivs 04-26-2005 08:27 AM

did as you said but nothing changed.. still the same message...

IBall 04-26-2005 08:33 AM

Try
Code:

export LANG=C
in ~/.bash_profile.

--Ian

zivs 04-26-2005 08:38 AM

sorry for stupid question but where can i find this bash_profile?

because if i write this in console i get
Quote:

bash: /root/.bash_profile: No such file or directory

IBall 04-26-2005 08:41 AM

Its in your home directory. Note that it has a leading dot, which means that it is hidden. To view all the hidden files in your home directory, execute the command "ls -l" in a terminal window. If it doesn't exist, you can simply create it.

Note that the tilda (~) is a shortcut to your home directory. For example, you can type "cd ~" and it will take you straight to your home directory

--Ian

zivs 04-26-2005 08:43 AM

and ehr.. it's no difference where this file will be? Does it have to have some kind of extension or smthn?

IBall 04-26-2005 08:49 AM

You will need to open it using an editor, like vi:
Code:

vi ~/.bash_profile
Press i to enter insert mode, end ESC-ZZ to save and exit.

--Ian

zivs 04-26-2005 09:01 AM

huh.. did all as you said - added in bash_profile this
Quote:

export lang=en_us
but still the same message.. Do I do something wrong? :cry:

IBall 04-26-2005 09:04 AM

Sorry, thats all I can think of. Try reading the documentation for Cedega, and see if there is an answer in there. Make sure that LANG is in capital letters, because Linux is Case Sensitive.

--Ian

zivs 04-26-2005 09:09 AM

Thanks for helping IBall :)

Maybe anyone else knows what to do if this don't work? :(


All times are GMT -5. The time now is 07:25 PM.