Switch language #48
-
SummaryAfter a few hours of unsuccessful attempts to change the language i'm here to ask for help. QuestionIs there any solution to change the App's language (even if I have to hardcode the language that I'll be using)? I'm not willing to change my system's language to anything other than english though. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sure! I've thought about making a language selector before, just haven't gotten around figuring out how (or if) to do it with GNU gettext. The system language is measured using the $ locale (Note that you will see like 20 different variables print out, but changing the To see all installed languages do: $ locale -a You'll see something like:
The $ env LANG=zh_CN.utf8 ./nest-test.sh |
Beta Was this translation helpful? Give feedback.
Sure! I've thought about making a language selector before, just haven't gotten around figuring out how (or if) to do it with GNU gettext.
The system language is measured using the
LANG
environment variable (plus some other locale variables). You can see your current locale with:(Note that you will see like 20 different variables print out, but changing the
LANG
variable will change them all)To see all installed languages do:
You'll see something like:
en_US.utf8
is UTF-8 American English andzh_CN.utf8
is UTF-8 Chinese. If you don't see the language you want you will have to install it which is distro-specific (your locale must…