Re:Why does Google use location for language rather than bro...
by SAI_Peregrinus on Friday March 11, 2022 @12:29PM
(#30643028)
I just have a custom locale for any UNIX-like systems I use. American English, UTF-8, 24-hour time, RFC-3339 dates, SI units, '.' decimal point, '_' thousands separator. I call it en_ENG, for the fictional land of Engineeristan.
[ Parent
| on HN ]
Re:Why does Google use location for language rather than bro...
by account42 on Monday March 14, 2022 @06:21AM
(#30670597)
I just use en_DK which (while not perfectly named) is exactly there to solve this.
Re:Why does Google use location for language rather than bro...
by SAI_Peregrinus on Monday March 14, 2022 @11:09AM
(#30673338)
That doesn't have `_` as the thousands separator. It uses ISO 8601 for date/times instead of RFC 3339 (so "2022-03-14T15:06:03 EDT" instead of "2022-03-14 15:06:03-04:00"), etc.
I just happen to want slightly different choices than it allows.
Re:Why does Google use location for language rather than bro...
by tut-urut-utut on Friday March 11, 2022 @02:50PM
(#30645150)
Mind to share your LC_ settings?
Re:Why does Google use location for language rather than bro...
by SAI_Peregrinus on Friday March 11, 2022 @04:19PM
(#30646144)
An explanation of all the valid fields can be found at [1]. Copy an existing locale, modify it to suit your needs. Don't forget to escape all characters as Unicode if you want it to support unicode. Compile & install as normal with localedef, add to `/var/lib/locales/supported.d`, run locale-gen, set the various `LC_` variables you want to use in `~/.profile` or `/etc/envionment` or whatever.
This[2] askubuntu answer goes into more detail.
[1] https://lh.2xlibre.net/locale/en_US/ [2] https://askubuntu.com/a/162714