Documentschange-locale-in-player2
Change Locale in player2
Change the locale of a Raspberry Pi player from the Pi itself.
Connect a keyboard to the Raspberry Pi before you follow these steps. Configuring the locale over SSH may give different results because of conflicts between the locale of the remote system and the locale of the Pi.
1. Modify the /etc/environment file
Edit /etc/environment with any editor so that it contains only this line. Other lines can be commented out or deleted.
export DISPLAY=:0
2. Execute the /etc/environment file
source /etc/environment
3. Clear /etc/default/locale
Empty the contents of the file /etc/default/locale.
4. Change the locale with raspi-config
- Open the configuration tool with
sudo raspi-config. - Choose Localization Options.
- Choose Locale.
- Scroll through the list and press the Space key to select a locale. The example is
de_DE.UTF-8 UTF8. Select the UTF8 option and not the ISO option. - On the next screen use the arrow keys to select the new locale and press Enter to set it as the Default Locale. Press ESC to close the config screen.
- A screen shows the new locale.
5. Reboot
sudo reboot
6. Verify the change
After the reboot, check the contents of /etc/default/locale. It should assign the new locale to both LANG and LANGUAGE.