Author Topic: where are locale settings on (micro)wattOS R9  (Read 3789 times)

tukoz

  • Newbie
  • *
  • Posts: 7
    • View Profile
where are locale settings on (micro)wattOS R9
« 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.

Code: [Select]
~$ 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:
Code: [Select]
~$ 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:
Code: [Select]
~# $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
Code: [Select]
~$ sudo dpkg-reconfigure locales      # choose  en_US.UTF-8 and fr_FR.UTF-8that 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). Just generates over a dozen unneeded locales.
Code: [Select]
~$ 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?

teejay

  • wattOS Veteran
  • Sr. Member
  • ****
  • Posts: 80
    • View Profile
Re: where are locale settings on (micro)wattOS R9
« Reply #1 on: May 01, 2016, 11:48:45 PM »
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" !!!     ;)