Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 400  / 2 Years ago, fri, december 31, 2021, 4:59:05

Invoking GNOME applications with LANUAGE=C application in a terminal seems to work fine (I've not yet experienced difficulties), I assume it is a specified (GNOME) behavior. What would be the equivalent way to controll language of KDE applications with a shell variable (not necessarily invoked in a KDE desktop, e.g. in Unity)?


More From » gnome

 Answers
4

The command



LANGUAGE=C application


is wrong. It may seem to 'work', but it's a coincidence.



LANGUAGE=X application


'works' too in that sense.



The LANGUAGE variable expects a colon separated list of language codes. Since neither C nor X is a valid language code, GNU compatible applications fall back to the original language, i.e. English.



LANGUAGE=en application


would be correct if LANGUAGE in the session environment is set to some other language, and you want to start a particular application in English.



To start non-GNU compatible applications in English you can use



LANG=en_US.UTF-8 application

[#24941] Sunday, January 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alkeake

Total Points: 467
Total Questions: 94
Total Answers: 126

Location: Tajikistan
Member since Tue, Jun 15, 2021
3 Years ago
;