I'm trying to have everything ready to install a new desktop with a few command line instructions. Unfortunately, to install the language packages, I couldn't find how to do it.
I can run
gnome-language-selector
But it doesn't seems to be usable in command line directly. I need to go on with clicks...
An other thing that could be done is that I do those clicks and find out which packages have been installed and read the changes in /etc/environment and /etc/default/locale (and other /etc/... file?) but the list of packages is probably different depending on the packages installed (Firefox, Thunderbird, LibreOffice, Gnome, ...)
Is there a tool for that? Like let's say :
gnome-language-selector --install fr
or a package that has all necessary dependencies :
sudo apt-get install super-language-pack-fr
Thanks,
For desktop you can
But each applications can have its language pack. To know the packages to be installed try:
For example:
Auto install all dependecies:
where
fr
is the desired language code.First, you need to edit the locale.gen file.
Then looking for the language pack you need and remove the comment mark, for example, if I want to install zh_CN.GBK GBK zh_CN.UTF8, I just remove the # symbol in these lines, alternatively, you can also add your lines directly into the file. Finally, run:
This is the simplest way I found online.
To add french language to Ubuntu using the Software Center:
Quoted from there:
So it may not have the language for certain programs.
To add a language to Ubuntu using the Command line:
Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below.