[HOW TO] installing additional locales in Linux Ubuntu

Sometime you will need to add a new language to your Linux. And how to?

Here I show you the short guidance for this. Hope this help :)

1.Check which locales are supported
$locale -a

2. add the locales that you want (e.g. Russia is "ru" )
$sudo locale-gen ru_RU
$sudo locale-gen ru_RU.UTF-8

3. Also you can regenerate list (it will invoke locale-gen)
$sudo dpkg-reconfigure locales

4. Edit in /etc/default/locale

5. You can search in repositories to find the language pack:
$sudo apt-get search language-pack*

6. Check packages to be installed (ubuntu)
$check-language-support -l zh       #zh = Chinese
$sudo apt-get install above_result


Here you can reference:
  • Chinese - Simplified (zh_CN.UTF-8)
  • Chinese - Traditional (zh_TW.UTF-8)
  • English (en_US.UTF-8)
  • French (fr_FR.UTF-8)
  • German (de_DE.UTF-8)
  • Italian (it_IT.UTF-8)
  • Japanese (ja_JP.UTF-8)
  • Korean (ko_KR.UTF-8)
  • Portuguese - Brazilian (pt_BR.UTF-8)
  • Spanish (es_ES.UTF-8)
     
     

0 nhận xét:

Post a Comment