• Adding a language package Ubuntu

    Instalē valodas pakotnes:

    sudo apt-get -y install language-pack-en
    sudo locale-gen fr_CA.UTF-8
    sudo dpkg-reconfigure locales
    sudo vi /etc/default/locale
    sudo reboot

    /etc/default/locale
    norāda:

    LANG="fr_CA.UTF-8"
    After the reboot, the language file for Canadian french (in the UTF-8 encoding, by the way), is included and ready to use.

    VARIANTS 2:

    Add the locale to the list of ‘supported locales’
    Edit /var/lib/locales/supported.d/local and add the following line:
    en_GB ISO-8859-1

    Regenerate the supported locales
    Run sudo dpkg-reconfigure locales

    Change the default locale
    Edit /etc/environment and ensure the LANG and LANGUAGE lines read as follows:
    LANG="en_GB"
    LANGUAGE="en_GB:en"

    UPDATE ’09: An old collegue has suggested that this change should now be made in /etc/default/locale rather than /etc/environment – Thanks Guy!

    Reboot!


1111111