Use
addlocale to add a non-English locale to your PCLinuxOS system.
Important note for users wanting to stay with 2009.2 release and KDE3, please read hereQuick Instructions:
-> read the Important notes in this post, they are constantly updated and contain additional useful information.
-> please always install the latest version (4.1, see end of this thread)
-> run: PCmenu -> More Applications -> Configuration -> Localization Manager
-> read the messages in the popup-windows, they are provided for a reason...
-> the default is set to use UTF-8 encoding. Only if you have problems with the display of diacritics and ligatures (these are letters like é, è, ë, ê, ü, ç, œ, ø, ñ in French/German/Portuguese/Italian/Spanish/Turkish/Swedish, etc.) you can try the following:
PCmenu -> More Applications -> Configuration -> Configure Your Computer; System -> Manage localization for your system; choose your language and click on Advanced; in the new window select Old compatibilty (non UTF-8) encoding; logout/login to apply the changes.
More info on utf-8 encoding can be found at utf-8 setup, utf-8 FAQ, language environment variables
Purpose/Features:Transform an English PCLinuxOS Desktop and its applications in widely spoken languages like Arabic, French, Russian, Chinese, Spanish, Hindi, and even exotic ones like Zulu or Welsh. A new locale is only added to the existing English locale and the original English locale remains untouched. The script also has the (default) option to revert to the original en_US setup, in case you were curious to see what a Hebrew or Punjabi PCLinuxOS desktop looks like and then got completely lost...
Requirements: - PCLinuxOS LiveCD (2011.09 or later) or an installed PCLinuxOS system (fully updated!)
- working Internet connection
- addlocale needs to download files which are not in the repository and for this reason it does not work with a local repo copy.
Supported languages:========================================
At present, addlocale provides support for a total of 84 localizations, including the option to revert back to the default English (US). The following languages are available for a given window manager:
KDE4: 64 languagesArabic, Basque, Belarusian, Bengali, Bulgarian, Catalan, Chhattisgarhi, Chinese (simplified), Chinese (traditional), Croatian, Czech, Danish, Dutch, English (GB), English (US), Esperanto, Estonian, Farsi, Finnish, French, Frisian, Gaelic, Galician, German, Greek, Gujarati, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Kannada, Kashubian, Kazakh, Khmer, Korean, Kurdish, Latvian, Lithuanian, Macedonian, Malayalam, Marathi, Nepali, Norwegian (Bokmaal), Norwegian (Nynorsk), Polish, Portuguese (Brazil), Portuguese (Portugal), Punjabi, Romanian, Russian, Low Saxon, Serbian, Slovak, Slovenian, Spanish, Swedish, Tajik, Thai, Turkish, Ukrainian, Walloon.
non-KDE4: 73 languagesAfrikaans, Arabic, Azeri, Basque, Belarusian, Bengali, Bosnian, Breton, Bulgarian, Catalan, Chinese (simplified), Chinese (traditional), Croatian, Czech, Danish, Dutch, English (GB), English (US), Esperanto, Estonian, Faroese, Farsi, Finnish, French, Gaelic, Galician, German, Greek, Hebrew, Hindi, Hungarian, Icelandic, Indonesian, Italian, Japanese, Korean, Lao, Latvian, Lithuanian, Macedonian, Malay, Maltese, Mongolian, Norwegian (Bokmaal), Norwegian (Nynorsk), Polish, Portuguese (Brazil), Portuguese (Portugal), Punjabi, Romanian, Russian, Saami, (Low) Saxon, Serbian, Slovak, Slovenian, (Upper) Sorbian, Sotho, Spanish, Swati, Swedish, Tajik, Tamil, Thai, Turkish, Ukrainian, Uzbek, Venda, Vietnamese, Welsh, Walloon, Xhosa, Zulu.
Instructions for a PCLinuxOS liveCD and a PC with at least 1.5 GB RAM :==================================================
1. Start the PCLinuxOS liveCD (2011.09 or any newer PCLinuxOS edition) and login to the guest or root account.
2. Start addlocale from the menu: PCmenu -> More Applications -> Configuration -> Add Locale
3. Read the provided messages, choose the desired new localization, and watch addlocale doing the job. Finally, addlocale will logout. Please do not reboot or you will have to start all over again.
4. Login again to the guest or root account and continue using your localized live-session or install the already localized and configured system to your hard disk by clicking the desktop icon 'Install PCLinuxOS'.
Instructions for an installed PCLinuxOS system:========================================
1. Update your system: start Synaptic, click the button
Reload, when finished click the button
Mark All Upgrades, and finally the button
Apply.
2. Start addlocale from the menu: Start -> More Applications -> Configuration -> Add Locale
3. Read the provided messages, choose the desired new localization, and watch addlocale doing the job. Please use
LibreOffice Manager for any LibreOffice-related task such as install, reinstall, fix, completely remove, or add another LibreOffice language. Finally, addlocale will reboot and apply the changes to the system.
4. Login to and enjoy your new localized PCLOS system.
Important notes:========================================
1.) Users running the e17 (Enlightenment) window manager:
after running addlocale the e17 user will have to manually set the locale to use either by
a) StartMenu -> Settings -> Settings Panel: top panel go to the right and select 'Language', then 'Language Settings', choose the language to use, press 'Apply', then 'Close' and again 'Close'; then logout/login
b) in e17, open a terminal and enter:
enlightenment_remote -lang-set de here 'de' is for German, other applicable language codes in e17 can be found using:
enlightenment_remote -lang-list and of course the new language must already be installed with addlocale; then logout/login
2.) Any application which is installed after changing to a new locale will automatically appear in the new locale (if a translation for this application is available in the chosen locale, else it will be in English). Please note that the amount of applicable translations will be different for different languages.
3.) The idea was to offer a 'comfortable' switch to the new locale, meaning to setup a readily usable desktop including all necessary fonts for a proper display of the new locale. If available, existing applications will get the new locale and additional new applications are only added if they are required or considered meaningful for the new locale. Adding a new locale will NEVER remove anything but only add what is required for the new locale.
4.) To add more than one new locale to the system run addlocale again for each new locale.
5.) addlocale problems:
a) Please realize: if your system has unmet dependencies or broken packages then addlocale can not work. How to test for broken packages/unmet dependencies: open Synaptic, press
Reload,
Mark All Upgrades,
Apply. After a successful update click on
Custom at the left bottom of Synaptic and then look in the left panel under
Broken and ensure there is nothing listed. If you have broken packages: select
Edit in the Synaptic menu and then
Fix Broken Packages. In case of duplicate packages run Start -> Packaging -> Dupeclean-gui. Now that your system is in good state, run addlocale.
b) if you still have problems: open a konsole window, enter:
addlocale and post the konsole output here in this thread together with additional information like your window manager (KDE4, LXDE, etc), the PCLinuxOS version you use, if your system is fully updated, do you get the same error when running addlocale as root, etc.
Remember: detailed and concise information is a prerequisite to fix your problem and will help improving addlocale.
c) If you use a proxy server: open a konsole and enter:
export http_proxy="http://proxy.example.com:8080"then in the same konsole enter:
addlocale6.) Please be aware that there are two language settings:
PCLinuxOS-KDE4:
===========
- the system language: you can only have one (1) system language and all applications will be displayed in the system language.
- the desktop language: you can have several desktop languages, or a different desktop language for each user on the system. The desktop language applies to the KDE4 desktop of a given user only.
After running addlocale, the KDE4 control center will only show the latest new locale and English but all other previously added locales are still available:
a) in any user account, go to KDE4 control center (
Start -> More Applications -> Configuration -> Configure Your Desktop),
Common Appearance and Behavior -> Locale -> Regional & Language -> Country/Region & Language and then on the right panel click on the tab
Languages. The left panel lists "available languages." The right panel lists "preferred languages." The buttons between the panels enable you to move a selected language from one panel to the other. On the right of the right panel are buttons which enable you to move languages listed in that panel up and down. Move the language of your choice to the first position then click on Apply, close the Control Center, then logout/login:
this will only change the KDE4 desktop language for the current user but the application language will be unchanged because it follows the system language.
b) open the language section in PCC (Start -> More Applications -> Configuration -> Configure Your Computer), then click on System -> Manage localization for your system, select the new locale, then logout/login: the KDE4 desktop language will be unchanged (cause it was not changed) but the application/system language will now be in the new locale.
c) to change the entire System to a different locale either follow the steps in a) and b) or, easier, just run addlocale again.
PCLinuxOS non-KDE4
=============
a similar logic as for KDE4 applies. In addition, you can choose a user-specific language setting from the 'Language' tab on the GNOME login screen, in case of using the Gnome display manager.
7.) For spellchecking in Firefox/Thunderbird/LibreOffice in a different locale you need to install the corresponding spellchecker separately as an addon. Check here for
Firefox, for
Thunderbird, and for LibreOffice: ensure LibreOffice is closed, then go
here, download the appropriate dictionary, open it with LibreOffice, and follow the instructions.
8.) Input of non-standard characters: (re-post from longtom and DeBaas)
First choose the USA intenational keyboard (PCC -> Hardware > Set up the keyboard layout > choose US keyboard international.), then you have the dead keys.
Umlaut ü, ö and ä: type " (you don't see it) followed by u and you get ü
[alternative: right alt, keep it pressed and press ";" then release the 2 keys and press either "a", "u" or "o" (or Shift + "a" etc for capital letters)]
ñ: ~ and n gets you your Niña
ß: hold the right WIN key (next to the right Alt) and typ two times s and will get ß
ç: hold the right WIN key and type , followed by c and there it is ç
€: right Alt-5 or right Alt-e is €
9.) If you use a proxy server:open a konsole and enter:
export http_proxy="http://proxy.example.com:8080"or with authentication:
export http_proxy="http://password:username@proxy.example.com:8080"then in the same konsole enter:
addlocale10.) Additional Information:- to learn about using additional options (addlocale version and system update test) enter in a terminal:
addlocale --help to find out about the command-line options
--no-vtest (skip the test for the latest version of addlocale) and
--no-updatetest (skip the test to check if your system is fully updated)
good luck and have fun!
-pinoc
PS: some desktop screenshots can be found in the animation on
this page, and there is also an article on addlocale and the old getopenoffice (now lomanager) in the
PCLinuxOS magazine.
Example results:

Thanks to DutchWolfie for the detailed instructions on adding the Dutch locale as well as OpenOffice: