Tag Archives: Locale

Jenkins – change default locale to english

To my surprise today Jenkins startede to speak to me, that was pretty scary. To change that behaviour then you have to install a locale pluging and set the default language.

INSTALL THE LOCALE PLUGIN

Go to -> Manage Jenkins -> Manage Plugins -> Click on Availables -> Check the “Locale plugin”

Just choose the option “Download now and install after restart”

Go to the plugin manager again and check if it is enabled.

SET THE LOCALE TO ENGLISH

Go to -> Manage Jenkins -> Configure System -> Locale -> set it to en

Check the option Ignore browser preferences otherwise your browser language would set it to your locale and it won’t work.

SSH – warning setlocale: LCC_ALL

If you are getting an error like this when you try to login trough ssh

bash: warning: setlocale: LC_ALL: cannot change locale (en_DK.UTF-8)
-bash: warning: setlocale: LC_ALL: cannot change locale (en_DK.UTF-8)
-bash: warning: setlocale: LC_ALL: cannot change locale (en_DK.UTF-8)

Then it can be the fixed by enable the locale on the remote system.

1. edit the file locale.gen and uncommend the line with the locale you are getting in your error message, in my example it is en_DK.UTF-8

sudo nano /etc/locale.gen

2. generate the new extra locale

sudo locale-gen