Message: previous - next
Month: September 2018

Re: [trinity-users] Re: change TDE language setting instantly

From: Nick Koretsky <nick_koretsky@...>
Date: Wed, 12 Sep 2018 02:26:13 +0300
On Wed, 12 Sep 2018 00:42:03 +0200
Stefan Krusche <linux@...> wrote:

> Am Dienstag, 11. September 2018 schrieb deloptes:
> > Stefan Krusche wrote:  
> > > is there a way to switch language setting for the GUI directly, i.e.
> > > not by clicking through TDE-Menu -> Trinity Control Center ->
> > > Regional & Access. -> Country/Region & Language -> Language List ->
> > > Move Up to have a particular program start with a different language?
> > > Something like TDE Keyboard Tool in Systray? Or via an command line
> > > option?  
> >
> > I do not think that application will reread somehow the settings -
> > usually application has to be restarted.  
> Yes, it has. My use case is: running the GUI with my native language and
> when I need to start an application with English language. So the way
> would be just as described: switch global language settings and
> thereafter start the application, switch back and I would have a running
> german language GUI with one application with English language.
> I was thinking of a quicker, one command way to switch global language
> settings. Now dcopserver comes to mind, too, but I haven't investigated
> the possibilities yet.
> > I was thinking if you start app with the language variable set, it would
> > work, but I just tested and it does not  
> Ok, didn't think of that one. Maybe it's possible to work that out.

"LANG=x your_app" will start a program with a different language
settings. But beware of LANG interaction with LC_ - LC_ overrides LANG.
Use LC_ALL instead of LANG if you want to be 100% sure, but this can be
undesirable... For example if you want to start application with english
GUI, but have german sorting and dates, use "LANG=en_US.UTF-8
LC_COLLATE=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 your_app"

  Nick Koretsky (nick.koretsky@...)