planetwatt.com
Help and Support => Archives => wattOS R9 => Topic started by: tukoz on May 01, 2016, 12:32:52 PM
-
Hi,
microwatt R9 just installed.
Say I wish to set wanted locales on microwatt and get rid of the unneeded.
Precisely I'd like to set the locales to fr_FR for the interface, TIME or units settings, and en_US for logs and system-related stuff.
~$ locale
LANG=fr_FR.UTF-8
LANGUAGE=fr:en
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER=en_US.UTF-8
Also:
~$ cat /var/lib/locales/supported.d/local
en_US.UTF-8 UTF-8
fr_FR.UTF-8 UTF-8
On Arch it's quickly done with:
~# $EDITOR /etc/locale.gen # uncomment en_US.UTF-8 and fr_FR.UTF-8
~# locale-gen
Generating locales... en_US.UTF-8, fr_FR.UTF-8. # two and that's it
On Debian (Wheezy) I do the same as in Arch, or
~$ sudo dpkg-reconfigure locales # choose en_US.UTF-8 and fr_FR.UTF-8
that generates en_US.UTF-8, fr_FR.UTF-8 and that's it. Upon each updates, only these two will be generated when needed.
On microwatt (Ubuntu family?) there's no /etc/locale.gen. Also `dpkg-reconfigure locales` does not let me choose the locale (as in R8) (http://planetwatt.com/newforum/index.php?topic=181.msg544). Just generates over a dozen unneeded locales.
~$ sudo dpkg-reconfigure locales
Generating locales...
en_AG.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
SNIP
Wondering how/where to set the system locales on (micro)watt OS?
-
R9 is based on Ubuntu so if the microwatt settings don't show up in Ubuntu's usual spots then I'd have a look at the i3wm config file.
I can't recall the location off the top of my head .... did you watch the video Biff made about microwatt/i3wm ? This file is mentioned near the end as being plain text and readily editable.
On a lighter note, don't be too quick to degree en_AU as "unneeded" !!! ;)