modify basic filestructure
It's unclear what's 'basic', so `basic/` notes have been mostly moved. The remainder became `shell/`.
This commit is contained in:
55
system/locale.md
Normal file
55
system/locale.md
Normal file
@@ -0,0 +1,55 @@
|
||||
---
|
||||
title: "locale"
|
||||
tags: [ "basics", "time" ]
|
||||
---
|
||||
|
||||
Your locale tells the computer your location, preferred time-and-date format, standard language, papersize, et c.
|
||||
A list of supported locales is available at /usr/share/i18n/SUPPORTED
|
||||
|
||||
See a full list with:
|
||||
|
||||
```sh
|
||||
cat /usr/share/i18n/SUPPORTED
|
||||
```
|
||||
|
||||
Take the first portion to generate full locale information for a region:
|
||||
|
||||
```sh
|
||||
locale-gen ru_RU.UTF-8
|
||||
```
|
||||
|
||||
Then use this for the current shell session with
|
||||
|
||||
```sh
|
||||
LANG=ru_RU.utf8
|
||||
```
|
||||
|
||||
Expand this to the entire system with:
|
||||
|
||||
```sh
|
||||
export LANG=ru_RU.utf8
|
||||
```
|
||||
|
||||
You can make this permanent for one user by adding this line to the ~/.profile or ~/.bashrc.
|
||||
|
||||
Make it permanent for the entire system by editing:
|
||||
|
||||
```sh
|
||||
sudo vim /etc/defaults/locale
|
||||
```
|
||||
|
||||
# Variables
|
||||
|
||||
While generally set together, the variables setable are:
|
||||
|
||||
| Variable | Description |
|
||||
|:-------------------------------------:|:---------------------------------------------------------------|
|
||||
| LC_TIME | Date and time |
|
||||
| LC_NUMERIC | Nonmonetary numeric formats |
|
||||
| LC_PAPER | A4 vs wrong paper |
|
||||
| LC_ADDRESS | Address formats, for those amazingly concise Polish addresses. |
|
||||
| LC_TELEPHONE | Telephone number formats. |
|
||||
| LC_MEASUREMENT | Metric or Imperial, but no Impetric available. |
|
||||
| LC_IDENTIFICATION | Metadata about the locale information |
|
||||
| LC_ALL | Just everything at once. |
|
||||
|
||||
Reference in New Issue
Block a user