How to set LANG variable in Windows?
I am creating an application that supports multiple languages. And I use gettext
and locale
to solve this problem.
How to set LANG variable in Windows? On Linux and Unix-like systems, this is as easy as
$ LANG=en_US python appname.py
And it will automatically set the locale to that specific language. But on Windows,
C:\>SET LANG=en_US python appname.py
or
C:\>SET LANG=en_US
C:\>python appname.py
does not work.
source to share
you can use batch file for example here: http://www.geany.org/Documentation/FAQ#QQuestions11
set LANG=en_US
something.exe
or install it via control panel / system / advanced system settings / advanced / environment variables
source to share