HowTo Install Locale

HOW TO INSTALL A LOCALE

To install any locale the only thing you need is locale specification file
which stores necessary information about that locale like number system, collating
sequence etc.

Once you obtain this locale specification file , copy it to
/usr/share/i18n/locales/
e.g. if you are installing Gujarati locale, you'll need locale specification file for
Gujarati which is named gj_IN Then you will have to copy that file as per above instruction
using following command
cp gj_IN /usr/share/i18n/locales/
directory which contains many such files for other files.

Now execute following command one-by-one on command prompt(Replace gj_IN by your locale's name):

cd /usr/share/i18n
rm -f /tmp/UTF-8
cp charmaps/UTF-8.gz /tmp
gzip -d /tmp/UTF-8.gz
localedef -i /usr/share/i18n/locales/gj_IN -f /tmp/UTF-8 /usr/lib/locale/gj_IN
rm -f /tmp/UTF-8

and that is all !

Now you can test your translation using your locale. Simply put all mo files (machine object files),
which are created from po files, in
/usr/share/locale//LC_MESSAGES/
and then to change locale execute
export LANG=
on command prompt.