Message: previous - next
Month: September 2018

Re: Re: UPDATE: switch language setting for one program instantly - was: [change TDE language setting instantly]

From: deloptes <deloptes@...>
Date: Thu, 13 Sep 2018 22:25:51 +0200
Stefan Krusche wrote:

> Hello deloptes,
> Am Donnerstag, 13. September 2018 schrieb deloptes:
>> Pisini, John wrote:
>> > Does anyone know where the documentation for tdecmshell is or even the
>> > old KDE version from way back? I tried searching for it and couldn't
>> > find it.
>> This is just two files! It looks like it talks to dcop from what I see.
>> It says
>>     const TQCString lang = args->getOption("lang");
>>     if( !lang.isNull() )
>>         TDEGlobal::locale()->setLanguage(lang);
> Does this code check for option "--lang .."? And if its not there take
> global language settings?

It checks if lang option is set (not null) and uses the value to set
language in TDEGlobal::locale, which (unfortunately it looks like) does not
affect dialog and a like, but window title and buttons are set properly to
use the specified language.

>> so when I run
>>         tdecmshell --lang en_US language
>> I see window title and buttons in english, but the dialogs are shown in
>> the whatever language is set.
> Same here as reported.
> Do you know if there's a way to start a program with dcop and a different
> language than configured globally?

Sorry, this is beyond my knowledge. 
But is TDE_LANG not a solution for you? I had the feeling it is exactly what
you need.

BTW I now tried 

        tdecmshell --lang en_US icons
        tdecmshell icons

and it behaves properly, so could it be something specific to the language

Same for printers
Same for useragent

hwmanager does not work

you can go on with the rest if you wish and file a bug for what is not
displayed properly. IMO icons, printers, useragent and perhaps more work
with the --lang option, but language, hwmanager and may be other do not.

But our expectation is that all should honor the language set with
tdecmshell --lang 

BTW for German use tdecmshell --lang de