Regenerate locale in Ubuntu

If you're installing eBox using Ubuntu Server Installer, you may not generate localisation for your language. This happens when you change the language in System->General and eBox interface keeps the previous language. To switch to your language you may follow these simple steps:

  1. Add your locale to /var/lib/locales/supported.d/local, one per line. For instance, to add Spanish language (es_ES) append this line:
    es_ES.UTF-8 UTF-8
    
  2. Regenerate locales package by running:
    $ sudo dpkg-reconfigure locales