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

2017-12-27 Thread john doe

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



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

2017-12-26 Thread john doe

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



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

2017-12-26 Thread john doe

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:

 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  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



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

2017-12-26 Thread Teemu Likonen
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   - .-..    //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///


signature.asc
Description: PGP signature


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

2017-12-26 Thread Greg Wooledge
On Tue, Dec 26, 2017 at 04:34:53PM +0100, john doe wrote:
> On 12/26/2017 2:27 PM, Greg Wooledge wrote:
> >  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  for
suggestions.



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

2017-12-26 Thread john doe

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.

 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



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

2017-12-26 Thread Greg Wooledge
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.

 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.



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

2017-12-23 Thread Teemu Likonen
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   - .-..    //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///


signature.asc
Description: PGP signature


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

2017-12-23 Thread Andre Majorel
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 
Report a bug in Debian and win a life time supply of free spam !



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

2017-12-23 Thread john doe

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