Setting LANG variable

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Grof
Level 2
Level 2
Posts: 29
Joined: Tue Mar 25, 2008 3:54 am

Setting LANG variable

Post by Grof »

One question.

If I want that Application correctly show my extra characters (Croatian chars), I must before calling apps set LANG variable on this way:

Code: Select all

LANG=hr_HR.UTF-8 wine app_name
or, I must add env LANG=hr_HR.UTF-8 as prefix in Launcher.

Can I somewhere set this variable as default, so I can call my apps without adding this text before.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Setting LANG variable

Post by vitamin »

Grof wrote:One question.

If I want that Application correctly show my extra characters (Croatian chars), I must before calling apps set LANG variable on this way:

Code: Select all

LANG=hr_HR.UTF-8 wine app_name
or, I must add env LANG=hr_HR.UTF-8 as prefix in Launcher.

Can I somewhere set this variable as default, so I can call my apps without adding this text before.
If you want keep everything else in English, you can't make it global. This is system setting that affects all applications. If you still want to do it and your default shell is bash, just add this to ~/.bashrc

Code: Select all

export LANG=hr_HR.UTF-8
Different files for other shells. Of you can change it system wide - that will depend on your distro.
Grof
Level 2
Level 2
Posts: 29
Joined: Tue Mar 25, 2008 3:54 am

Post by Grof »

Thanks...

I tried with ~/.bashrc, but do not work. Only if I change entire system to Croatian, but I want use English into my system.

Never mind...I can add prefix into program's line of launcher.
Locked