Trisquel 8: Language support

10 risposte [Ultimo contenuto]
GNUbahn
Offline
Iscritto: 02/18/2016

I am running Cinnamon on Flidas. When I installed Flidas, I chose Danish as the system language. Being such an itiot, I often need help, and I realised that receiving and giving information about the system, terminal in- and outputs etc., is inconvenient. Hence I wish to change the system language to English (UK).

In system settings I don't have a 'language support' option. I am sure this can be done by terminal, but when searching I can not find useful answers.

How can language settings be change via terminal?

stas730 (non verificato)
stas730

I think it can be fixed by using LC_ALL for Cinnamon.
Developers: Please check some languages in Live menu.
Убунту = Ubuntu
This trademark should be removed ASAP.
P. S. ASAP = as soon as possible

SuperTramp83

I am a translator!

Offline
Iscritto: 10/31/2014

sudo nano /etc/default/locale

LANG="en_US"
LANGUAGE="en_US:en"

Reboot you PC

GNUbahn
Offline
Iscritto: 02/18/2016

Thanks.

I suppose en_UK and en_UK:en works as well?

GNUbahn
Offline
Iscritto: 02/18/2016

Would it make sense to add .utf-8?

GNUbahn
Offline
Iscritto: 02/18/2016

By the way, I wish my system language to English (UK) but my keyboard and primary spell-check to be Danish. Are these issues handle in different places or should I address that here (in the locale file) as well?

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

They are handled in different places. But you could keep your system in your preferred language and only ask for "en_UK" (or, maybe, the system locale) when executing a command whose output will be shown to international users (for help). Like stas730 wrote, you can redefine LC_ALL to do so. For example, my system speaks French:
$ ls --version
ls (GNU coreutils) 8.21
Copyright © 2013 Free Software Foundation, Inc.
License GPLv3+ : GNU GPL version 3 ou ultérieure
http://gnu.org/licenses/gpl.html
C'est logiciel libre, vous êtes libre de le modifier et de le redistribuer.
Ce logiciel n'est accompagné d'ABSOLUMENT AUCUNE GARANTIE, dans les limites
autorisées par la loi applicable.
Écrit par Richard M. Stallman et David MacKenzie.

But I can precede the command with "LC_ALL=C" to use the system locale:
$ LC_ALL=C ls --version
ls (GNU coreutils) 8.21
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Richard M. Stallman and David MacKenzie.

GNUbahn
Offline
Iscritto: 02/18/2016

That is really cool. Occasionally I have to guide Danish users and in those cases English is often a hurdle.

GNUbahn
Offline
Iscritto: 02/18/2016

Would this work the other way around as well? I.e. if my system language was English, could I make the terminal display output in Danish?

LC_ALL=DA?

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

It works with any language... as long as it is installed and the program was translated to that language! You can install new languages through "Language Support" in the "System Settings" (notice that I ran "LC_ALL=C gnome-control-center.real" to know how it is called in English).

To print the available locales:
$ locale -a

Danish is not "DA", I guess. And British English is not "en_UK" like I wrote but "en_GB.utf8".

GNUbahn
Offline
Iscritto: 02/18/2016

I tried this, in the hope that it would give a French output:

jb@jb-x200:~$ LC_ALL=FR sudo /usr/share/doc/libdvdread4/install-css.sh
[sudo] password for jb:
sudo: /usr/share/doc/libdvdread4/install-css.sh: command not found

It did not (don't mind the command itself)

But it did give me an English output in a Danish environment