After installing a new Linux (Mint 17, xfce), I need to install Chinese input method, so I have to install Chinese locale at first.
-
List all installed locales:
locale -a
; -
View all supported locales on your system:
less /usr/share/i18n/SUPPORTED
, and "zh_CN.UTF-8 UTF-8" is what I want to install; -
Add this locale into locale list file:
echo "zh_CN.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local
; -
Regenerate locale list:
sudo dpkg-reconfigure locales
;
Ref:
How do I add locale to ubuntu server?