how to change LANG option for default

Questions about Wine on Linux
Locked
ardvdz
Level 2
Level 2
Posts: 20
Joined: Mon Mar 20, 2023 10:40 pm

how to change LANG option for default

Post by ardvdz »

i have an app that needs a specific LANG option
i can run it with this code:
LANG=ar_DZ.utf8 wine DIC32.exe
but i don't want to use this code every time i open the file
so is there a way to set the LANG for default in the wine prefix?
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: how to change LANG option for default

Post by invisible kid »

I don't know if wine has any mechanism for this, but the regular unix/linux way you could deal with this is to put "export LANG=ar_DZ.utf8" into your .bashrc or equivalent. But then it would be the default language for every app that uses that variable. You could issue a command to launch an xterm with that variable set, and then it would only apply to programs launched from that xterm, but that seems a bit cumbersome. To be honest, the way you currently launch is the most elegant that I know of. That way the variable is only in effect for this single command.

Another way is use aliases. You could do something like "alias winedz='LANG=ar_DZ.utf8 wine", then you could just type "winedz DIC32.exe". There are many different ways to accomplish similar things, hopefully you can find something that works for you.
Locked