Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2012
how to find the operating system language(English, french, german)
how i can find out compile time that which language(english, german, french. etc) operating system is installed in my computer..
thanks & regards :
sunil kumar maurya
In decreasing priority:
- LC_xxx, according to selected locale category
Source: GNU `gettext' utilities
But I would argue, that determining the language for a binary at compile time is a design flaw.
a) The compile machine is most probably not the machine where the enduser runs the binary. So the env and language preference can be different.
b) You need the language for your tool configurable anyway. So let your tool make use of configuration.
Preferably via env variables, but a dedicated config file is also possible.You must always face the curtain with a bow.