Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #190215 > unrolled thread

Language of applications are not translated if the default language is changed

Started byjohn doe <johndoe65534@mail.com>
First post2017-12-23 19:30 +0100
Last post2017-12-27 13:30 +0100
Articles 10 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  Language of applications are not translated if the default language  is changed john doe <johndoe65534@mail.com> - 2017-12-23 19:30 +0100
    Re: Language of applications are not translated if the default  language is changed Andre Majorel <aym-naibed@teaser.fr> - 2017-12-24 08:40 +0100
      Re: Language of applications are not translated if the default  language is changed Greg Wooledge <wooledg@eeg.ccf.org> - 2017-12-26 14:30 +0100
        Re: Language of applications are not translated if the default  language is changed john doe <johndoe65534@mail.com> - 2017-12-26 16:40 +0100
          Re: Language of applications are not translated if the default  language is changed Greg Wooledge <wooledg@eeg.ccf.org> - 2017-12-26 16:50 +0100
            Re: Language of applications are not translated if the default  language is changed john doe <johndoe65534@mail.com> - 2017-12-26 17:20 +0100
          Re: Language of applications are not translated if the default language is changed Teemu Likonen <tlikonen@iki.fi> - 2017-12-26 17:10 +0100
            Re: Language of applications are not translated if the default  language is changed john doe <johndoe65534@mail.com> - 2017-12-26 18:00 +0100
    Re: Language of applications are not translated if the default language is changed Teemu Likonen <tlikonen@iki.fi> - 2017-12-24 09:00 +0100
      Re: Language of applications are not translated if the default  language is changed john doe <johndoe65534@mail.com> - 2017-12-27 13:30 +0100

#190215 — Language of applications are not translated if the default language is changed

Fromjohn doe <johndoe65534@mail.com>
Date2017-12-23 19:30 +0100
SubjectLanguage of applications are not translated if the default language is changed
Message-ID<uZWIx-5LF-5@gated-at.bofh.it>
Hi,

I have install Debian 9 using as the default language 'C'.
I want to add some new languages, and for this I do 'dpkg-reconfigure 
locales'.
I'm currently using Gnome and Mate.

How can I add support for those new languages so all applications will 
be translated in the desired language (using command line is prefered)?

-- 
John Doe

[toc] | [next] | [standalone]


#190240 — Re: Language of applications are not translated if the default language is changed

FromAndre Majorel <aym-naibed@teaser.fr>
Date2017-12-24 08:40 +0100
SubjectRe: Language of applications are not translated if the default language is changed
Message-ID<v0933-25n-1@gated-at.bofh.it>
In reply to#190215
On 2017-12-23 19:21 +0100, john doe wrote:

> I have install Debian 9 using as the default language 'C'.
> I want to add some new languages, and for this I do 'dpkg-reconfigure
> locales'.
> I'm currently using Gnome and Mate.
> 
> How can I add support for those new languages so all
> applications will be translated in the desired language (using
> command line is prefered)?

Have you tried setting LC_ALL appropriately (eg LC_ALL=fr_FR) in
your .profile then logging out & in again ?

-- 
André Majorel <http://www.teaser.fr/~amajorel/>
Report a bug in Debian and win a life time supply of free spam !

[toc] | [prev] | [next] | [standalone]


#190294 — Re: Language of applications are not translated if the default language is changed

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2017-12-26 14:30 +0100
SubjectRe: Language of applications are not translated if the default language is changed
Message-ID<v0XsR-2Rb-3@gated-at.bofh.it>
In reply to#190240
On Sun, Dec 24, 2017 at 08:27:20AM +0100, Andre Majorel wrote:
> On 2017-12-23 19:21 +0100, john doe wrote:
> 
> > I have install Debian 9 using as the default language 'C'.
> > I want to add some new languages, and for this I do 'dpkg-reconfigure
> > locales'.
> > I'm currently using Gnome and Mate.
> > 
> > How can I add support for those new languages so all
> > applications will be translated in the desired language (using
> > command line is prefered)?
> 
> Have you tried setting LC_ALL appropriately (eg LC_ALL=fr_FR) in
> your .profile then logging out & in again ?

Do not use LC_ALL for this purpose.  It should be reserved for emergency
overrides on a single command basis.

Use the LANG variable to set your default locale and character set.

<https://wiki.debian.org/Locale> describes the basic concepts and
procedures for selecting your locale.

In order to receive output in your preferred language, each application
needs to have been configured for localization *and* have a translation
mapping for your language.  The more common/popular a program is, the
more likely this is to be true, at least for the more common languages.

[toc] | [prev] | [next] | [standalone]


#190309 — Re: Language of applications are not translated if the default language is changed

Fromjohn doe <johndoe65534@mail.com>
Date2017-12-26 16:40 +0100
SubjectRe: Language of applications are not translated if the default language is changed
Message-ID<v0ZuG-4l0-15@gated-at.bofh.it>
In reply to#190294
On 12/26/2017 2:27 PM, Greg Wooledge wrote:
> On Sun, Dec 24, 2017 at 08:27:20AM +0100, Andre Majorel wrote:
>> On 2017-12-23 19:21 +0100, john doe wrote:
>>
>>> I have install Debian 9 using as the default language 'C'.
>>> I want to add some new languages, and for this I do 'dpkg-reconfigure
>>> locales'.
>>> I'm currently using Gnome and Mate.
>>>
>>> How can I add support for those new languages so all
>>> applications will be translated in the desired language (using
>>> command line is prefered)?
>>
>> Have you tried setting LC_ALL appropriately (eg LC_ALL=fr_FR) in
>> your .profile then logging out & in again ?
> 
> Do not use LC_ALL for this purpose.  It should be reserved for emergency
> overrides on a single command basis.
> 
> Use the LANG variable to set your default locale and character set.
> 
> <https://wiki.debian.org/Locale> describes the basic concepts and
> procedures for selecting your locale.
> 
> In order to receive output in your preferred language, each application
> needs to have been configured for localization *and* have a translation
> mapping for your language.  The more common/popular a program is, the
> more likely this is to be true, at least for the more common languages.
> 

Thank you for this,

I guess what I'm asking is:

When I install Debian, at the beginning, I select language 'a' and 
proceed with installation.
The installed system is properly set to language 'a' (desktop manager, 
Firefox, Thunderbird, Libreoffice, dictionaries  ...).

In addition to language 'a', I want to add support for language 'b' so 
the user could choose between language 'a' or 'b'.
Doing 'dpkg-reconfigure locales' selecting language 'a' and 'b' is not 
enough  for Firefox, Thunderbird to be translated into language 'b'..
In console mode I can change the language using 'LANG*'.
What should I do to translate Firefox and Thunderbird to language 'b'?

-- 
John Doe

[toc] | [prev] | [next] | [standalone]


#190312 — Re: Language of applications are not translated if the default language is changed

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2017-12-26 16:50 +0100
SubjectRe: Language of applications are not translated if the default language is changed
Message-ID<v0ZEm-4z5-11@gated-at.bofh.it>
In reply to#190309
On Tue, Dec 26, 2017 at 04:34:53PM +0100, john doe wrote:
> On 12/26/2017 2:27 PM, Greg Wooledge wrote:
> > <https://wiki.debian.org/Locale> describes the basic concepts and
> > procedures for selecting your locale.

> Thank you for this,
> 
> I guess what I'm asking is:
> 
> When I install Debian, at the beginning, I select language 'a' and proceed
> with installation.
> The installed system is properly set to language 'a' (desktop manager,
> Firefox, Thunderbird, Libreoffice, dictionaries  ...).
> 
> In console mode I can change the language using 'LANG*'.
> What should I do to translate Firefox and Thunderbird to language 'b'?

Are you currently using a Desktop Environment?  (If so, which one?)
If this is the case, then you typically need to select your language
within the Desktop Environment's control system.

If you aren't using a Desktop Environment, then how do you login?  On
the console and then 'startx', or through a Display Manager?  (If so,
which one?)

If you login via a DM, then your regular shell dot files are NOT read
during startup.  You would need to put your LANG=... in a different place
in order to be sure the DM reads it.

(And as we have learned the hard way on this mailing list, setting
variables won't help you AT ALL if you are using GNOME, because it
clobbers them and does its own thing.  You *really* need to use GNOME's
control system to set your language, if you use GNOME.  Which means you
are at the mercy of the GNOME control system, and all of its limitations.)

If this issue is really "I use foobardm; where do I put variables for
my login sessions" then see <https://wiki.debian.org/Xsession> for
suggestions.

[toc] | [prev] | [next] | [standalone]


#190316 — Re: Language of applications are not translated if the default language is changed

Fromjohn doe <johndoe65534@mail.com>
Date2017-12-26 17:20 +0100
SubjectRe: Language of applications are not translated if the default language is changed
Message-ID<v107n-53v-5@gated-at.bofh.it>
In reply to#190312
On 12/26/2017 4:46 PM, Greg Wooledge wrote:
> On Tue, Dec 26, 2017 at 04:34:53PM +0100, john doe wrote:
>> On 12/26/2017 2:27 PM, Greg Wooledge wrote:
>>> <https://wiki.debian.org/Locale> describes the basic concepts and
>>> procedures for selecting your locale.
> 
>> Thank you for this,
>>
>> I guess what I'm asking is:
>>
>> When I install Debian, at the beginning, I select language 'a' and proceed
>> with installation.
>> The installed system is properly set to language 'a' (desktop manager,
>> Firefox, Thunderbird, Libreoffice, dictionaries  ...).
>>
>> In console mode I can change the language using 'LANG*'.
>> What should I do to translate Firefox and Thunderbird to language 'b'?
> 
> Are you currently using a Desktop Environment?  (If so, which one?)

Yes, I'm currently using Mate and Gnome.

> If this is the case, then you typically need to select your language
> within the Desktop Environment's control system.
> 

That's a given.

> If you aren't using a Desktop Environment, then how do you login?  On
> the console and then 'startx', or through a Display Manager?  (If so,
> which one?)
> 
> If you login via a DM, then your regular shell dot files are NOT read
> during startup.  You would need to put your LANG=... in a different place
> in order to be sure the DM reads it.
> 
> (And as we have learned the hard way on this mailing list, setting
> variables won't help you AT ALL if you are using GNOME, because it
> clobbers them and does its own thing.  You *really* need to use GNOME's
> control system to set your language, if you use GNOME.  Which means you
> are at the mercy of the GNOME control system, and all of its limitations.)
> 

Not what I wanted to hear -- thanks

> If this issue is really "I use foobardm; where do I put variables for
> my login sessions" then see <https://wiki.debian.org/Xsession> for
> suggestions.
> 

I know that exporting shell variables 'LANG*' will not help for Gnome 
and Mate.

Apparently, I can't use the command line to set the languages in Gnome/Mate.
I have one computer (locally accessed) on which multiple users use 
different languages.
My goal is to avoied having to logged in to eatch user to set the language.

If I'm not clear enough or if what I want is not possible, an other 
approach along with some more testing will be needed.

--
John Doe

[toc] | [prev] | [next] | [standalone]


#190314 — Re: Language of applications are not translated if the default language is changed

FromTeemu Likonen <tlikonen@iki.fi>
Date2017-12-26 17:10 +0100
SubjectRe: Language of applications are not translated if the default language is changed
Message-ID<v0ZXH-4ZG-5@gated-at.bofh.it>
In reply to#190309

[Multipart message — attachments visible in raw view] — view raw

john doe [2017-12-26 16:34:53+01] wrote:

> The installed system is properly set to language 'a' (desktop manager,
> Firefox, Thunderbird, Libreoffice, dictionaries ...).
>
> In addition to language 'a', I want to add support for language 'b' so
> the user could choose between language 'a' or 'b'. Doing
> 'dpkg-reconfigure locales' selecting language 'a' and 'b' is not
> enough for Firefox, Thunderbird to be translated into language 'b'..
> In console mode I can change the language using 'LANG*'. What should I
> do to translate Firefox and Thunderbird to language 'b'?

The Debian package system has language "tasks" which can be installed
like packages. You can search your preferred languages with

    apt search task-LANGUAGE

where LANGUAGE is the name of the language (like task-finnish).
Graphical package manager programs can probably browse available tasks
too. I would recommend installing such tasks.

Also, some programs have their language-specific files in a separate
package: the name ends with -l10n- and a two-letter language code.

-- 
/// Teemu Likonen   - .-..   <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

[toc] | [prev] | [next] | [standalone]


#190319 — Re: Language of applications are not translated if the default language is changed

Fromjohn doe <johndoe65534@mail.com>
Date2017-12-26 18:00 +0100
SubjectRe: Language of applications are not translated if the default language is changed
Message-ID<v10K5-5kU-1@gated-at.bofh.it>
In reply to#190314
On 12/26/2017 5:04 PM, Teemu Likonen wrote:
> john doe [2017-12-26 16:34:53+01] wrote:
> 
>> The installed system is properly set to language 'a' (desktop manager,
>> Firefox, Thunderbird, Libreoffice, dictionaries ...).
>>
>> In addition to language 'a', I want to add support for language 'b' so
>> the user could choose between language 'a' or 'b'. Doing
>> 'dpkg-reconfigure locales' selecting language 'a' and 'b' is not
>> enough for Firefox, Thunderbird to be translated into language 'b'..
>> In console mode I can change the language using 'LANG*'. What should I
>> do to translate Firefox and Thunderbird to language 'b'?
> 
> The Debian package system has language "tasks" which can be installed
> like packages. You can search your preferred languages with
> 
>      apt search task-LANGUAGE
> 
> where LANGUAGE is the name of the language (like task-finnish).
> Graphical package manager programs can probably browse available tasks
> too. I would recommend installing such tasks.
> 
> Also, some programs have their language-specific files in a separate
> package: the name ends with -l10n- and a two-letter language code.
> 

Thank you, I have something to read and try!!! :)

I really appriciate your input (I've been searching for a while without 
success).

-- 
John Doe

[toc] | [prev] | [next] | [standalone]


#190241 — Re: Language of applications are not translated if the default language is changed

FromTeemu Likonen <tlikonen@iki.fi>
Date2017-12-24 09:00 +0100
SubjectRe: Language of applications are not translated if the default language is changed
Message-ID<v09mq-2gH-1@gated-at.bofh.it>
In reply to#190215

[Multipart message — attachments visible in raw view] — view raw

john doe [2017-12-23 19:21:32+01] wrote:

> How can I add support for those new languages so all applications will
> be translated in the desired language (using command line is
> prefered)?

As root user:

    localectl set-locale LANG=xx_YY.UTF-8

where xx_YY.UTF-8 is locale's name. You can add more locale variables to
the command line. You can also set default keymaps with localectl
command. See its manual page for more info.

-- 
/// Teemu Likonen   - .-..   <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///

[toc] | [prev] | [next] | [standalone]


#190338 — Re: Language of applications are not translated if the default language is changed

Fromjohn doe <johndoe65534@mail.com>
Date2017-12-27 13:30 +0100
SubjectRe: Language of applications are not translated if the default language is changed
Message-ID<v1j0l-1vq-1@gated-at.bofh.it>
In reply to#190241
On 12/24/2017 8:48 AM, Teemu Likonen wrote:
> john doe [2017-12-23 19:21:32+01] wrote:
> 
>> How can I add support for those new languages so all applications will
>> be translated in the desired language (using command line is
>> prefered)?
> 
> As root user:
> 
>      localectl set-locale LANG=xx_YY.UTF-8
> 
> where xx_YY.UTF-8 is locale's name. You can add more locale variables to
> the command line. You can also set default keymaps with localectl
> command. See its manual page for more info.
> 

Thanks again. :)
my apologies for not answering back sooner (your e-mail was detected as 
spam).

-- 
John Doe

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web