Skip to content

Commit 22469d8

Browse files
authored
Add locale for ubuntu (#493)
* Correction typos in French * Move locale from Win Ubuntu to CLI tools partial The locale problem also happens on some Ubuntu installations. The solution currently sits in the Windows Update partial, but it makes more sense to include it in a partial that caters for both Windows and Ubuntu. The start of the CLI tools section is a good place to do this: - It fits better with the setup actions we do in that section. - It is still early enough: the problem only gets triggered after dotfiles. This commit will automatically move this in the right place. No need to change the `build.rb`. The next rebuild of the data-setup will then also include these changes. DA and DE setups do not rely on these partials. Also corrected some typos in the FR partial.
1 parent 3a1d61a commit 22469d8

File tree

8 files changed

+120
-122
lines changed

8 files changed

+120
-122
lines changed

_partials/cli_tools.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
## Command line tools
22

3+
### Check the locale
4+
5+
The locale is a mechanism allowing to customize programs to your language and country.
6+
7+
Let's verify that the default locale is set to English, please type this in the Ubuntu terminal:
8+
9+
```bash
10+
locale
11+
```
12+
13+
If the output does not contain `LANG=en_US.UTF-8`, run the following command in a Ubuntu terminal to install the english locale:
14+
15+
```bash
16+
sudo locale-gen en_US.UTF-8
17+
```
18+
19+
If after, you receive a warning (`bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)`) in your terminal, please do the following:
20+
21+
<details>
22+
<summary>Generate locale</summary>
23+
24+
Please, run this lines in your terminal.
25+
26+
```bash
27+
sudo update-locale LANG=en_US.UTF8
28+
sudo apt-get update
29+
sudo apt-get install language-pack-en language-pack-en-base manpages
30+
```
31+
</details>
32+
333
### Zsh & Git
434

535
Instead of using the default `bash` [shell](https://en.wikipedia.org/wiki/Shell_(computing)), we will use `zsh`.

_partials/es/cli_tools.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
## Herramientas de línea de comando
22

3+
### Comprueba la configuración regional (locale)
4+
5+
La "locale" es un mecanismo que permite adaptar los programas a su idioma y país.
6+
7+
Comprobemos que la configuración regional por defecto es el inglés:
8+
9+
```bash
10+
locale
11+
```
12+
13+
Si la salida no contiene `LANG=en_US.UTF-8`, ejecute el siguiente comando en un Ubuntu terminal para instalar la locale inglesa:
14+
15+
```bash
16+
sudo locale-gen en_US.UTF-8
17+
```
18+
19+
Si después, recibes una advertencia (`bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)`) en tu terminal, por favor haz lo siguiente:
20+
21+
<details>
22+
<summary>Generar la configuración regional<>/summary>
23+
24+
Por favor, ejecuta estas líneas en tu terminal.
25+
26+
```bash
27+
sudo update-locale LANG=en_US.UTF8
28+
sudo apt-get update
29+
sudo apt-get install language-pack-en language-pack-en-base manpages
30+
```
31+
</details>
32+
333
### Zsh & Git
434

535
En lugar de usar el `bash` [shell](https://en.wikipedia.org/wiki/Shell_(computing)) predeterminado, usaremos `zsh`.

_partials/es/windows_ubuntu.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -110,33 +110,3 @@ whoami
110110
Debería devolver el nombre de usuario que elegiste anteriormente.
111111

112112
:x: Si dice `root`, **contacta a un profesor** antes de continuar.
113-
114-
### Comprueba la configuración regional (locale)
115-
116-
La "locale" es un mecanismo que permite adaptar los programas a su idioma y país.
117-
118-
Comprobemos que la configuración regional por defecto es el inglés:
119-
120-
```bash
121-
locale
122-
```
123-
124-
Si la salida no contiene `LANG=en_US.UTF-8`, ejecute el siguiente comando en un Ubuntu terminal para instalar la locale inglesa:
125-
126-
```bash
127-
sudo locale-gen en_US.UTF-8
128-
```
129-
130-
Si después, recibes una advertencia (`bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)`) en tu terminal, por favor haz lo siguiente:
131-
132-
<details>
133-
<summary>Generar la configuración regional<>/summary>
134-
135-
Por favor, ejecuta estas líneas en tu terminal.
136-
137-
```bash
138-
sudo update-locale LANG=en_US.UTF8
139-
sudo apt-get update
140-
sudo apt-get install language-pack-en language-pack-en-base manpages
141-
```
142-
</details>

_partials/fr/cli_tools.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
## Outils en ligne de commande
22

3+
### Vérifier la locale
4+
5+
Le concept de "locale" permet de personnaliser les programms en fonction de ta langue et ton pays.
6+
7+
Vérifions que la locale est bien en **anglais** dans le terminal :
8+
9+
```bash
10+
locale
11+
```
12+
13+
Si la commande ne renvoie pas quelque chose qui contient `LANG=en_US.UTF-8`, lance ceci dans un terminal Ubuntu :
14+
15+
```bash
16+
sudo locale-gen en_US.UTF-8
17+
```
18+
19+
Si après, tu reçois un avertissement (`bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)`) dans ton terminal, veuillez faire ce qui suit :
20+
21+
<details>
22+
<summary>Générer la localisation</summary>
23+
24+
Veuillez exécuter ces lignes dans ton terminal.
25+
26+
```bash
27+
sudo update-locale LANG=en_US.UTF8
28+
sudo apt-get update
29+
sudo apt-get install language-pack-en language-pack-en-base manpages
30+
```
31+
</details>
32+
333
### Zsh & Git
434

535
Au lieu d’utiliser le [shell](https://fr.wikipedia.org/wiki/Interface_syst%C3%A8me) `bash` par défaut, nous utiliserons `zsh`.

_partials/fr/windows_ubuntu.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -111,34 +111,3 @@ whoami
111111
Cela devrait renvoyer le nom d'utilisateur que tu as choisi précédemment.
112112

113113
:x: Si cela affiche `root`, **contacte un TA** avant de continuer !
114-
115-
116-
### Vérifier la locale
117-
118-
Le concept e "locale" permert de personnaliser les programms en fonction de ta langue et ton pays.
119-
120-
Vérifions que la locale est bien en **anglais** dans le terminal :
121-
122-
```bash
123-
locale
124-
```
125-
126-
Si la commande ne renvoie pas quelque chose qui contient `LANG=en_US.UTF-8`, lance ceci dans un terminal Ubuntu :
127-
128-
```bash
129-
sudo locale-gen en_US.UTF-8
130-
```
131-
132-
Si après, tu reçois un avertissement (`bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)`) dans ton terminal, veuillez faire ce qui suit :
133-
134-
<details>
135-
<summary>Générer la localisation</summary>
136-
137-
Veuillez exécuter ces lignes dans ton terminal.
138-
139-
```bash
140-
sudo update-locale LANG=en_US.UTF8
141-
sudo apt-get update
142-
sudo apt-get install language-pack-en language-pack-en-base manpages
143-
```
144-
</details>

_partials/pt/cli_tools.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,35 @@
11
## Ferramentas de linha de comando
22

3+
### Verifique a localidade
4+
5+
A localidade é um mecanismo que permite personalizar programas de acordo com seu idioma e país.
6+
7+
Vamos verificar se a localidade padrão está definida como inglês, digite isto no terminal do Ubuntu:
8+
9+
```bash
10+
locale
11+
```
12+
13+
Se a saída não contiver `LANG=en_US.UTF-8`, execute o seguinte comando em um terminal Ubuntu para instalar a localidade em inglês:
14+
15+
```bash
16+
sudo locale-gen en_US.UTF-8
17+
```
18+
19+
Se, depois, receberes um aviso (`bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)`) no teu terminal, por favor faz o seguinte:
20+
21+
<details>
22+
<summary>Gerar localidade</summary>
23+
24+
Por favor, executa estas linhas no teu terminal.
25+
26+
```bash
27+
sudo update-locale LANG=en_US.UTF8
28+
sudo apt-get update
29+
sudo apt-get install language-pack-en language-pack-en-base manpages
30+
```
31+
</details>
32+
333
### Zsh e Git
434

535
Em vez de usar o `bash` [shell](https://en.wikipedia.org/wiki/Shell_(computing)), usaremos `zsh`.

_partials/pt/windows_ubuntu.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -110,34 +110,3 @@ whoami
110110
It should return the username you chose before.
111111

112112
:x: It if says `root`, **contact a TA** before continuing!
113-
114-
115-
### Verifique a localidade
116-
117-
A localidade é um mecanismo que permite personalizar programas de acordo com seu idioma e país.
118-
119-
Vamos verificar se a localidade padrão está definida como inglês, digite isto no terminal do Ubuntu:
120-
121-
```bash
122-
locale
123-
```
124-
125-
Se a saída não contiver `LANG=en_US.UTF-8`, execute o seguinte comando em um terminal Ubuntu para instalar a localidade em inglês:
126-
127-
```bash
128-
sudo locale-gen en_US.UTF-8
129-
```
130-
131-
Se, depois, receberes um aviso (`bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)`) no teu terminal, por favor faz o seguinte:
132-
133-
<details>
134-
<summary>Gerar localidade</summary>
135-
136-
Por favor, executa estas linhas no teu terminal.
137-
138-
```bash
139-
sudo update-locale LANG=en_US.UTF8
140-
sudo apt-get update
141-
sudo apt-get install language-pack-en language-pack-en-base manpages
142-
```
143-
</details>

_partials/windows_ubuntu.md

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -111,33 +111,3 @@ whoami
111111
It should return the username you chose before.
112112

113113
:x: It if says `root`, **contact a TA** before continuing!
114-
115-
### Check the locale
116-
117-
The locale is a mechanism allowing to customize programs to your language and country.
118-
119-
Let's verify that the default locale is set to English, please type this in the Ubuntu terminal:
120-
121-
```bash
122-
locale
123-
```
124-
125-
If the output does not contain `LANG=en_US.UTF-8`, run the following command in a Ubuntu terminal to install the english locale:
126-
127-
```bash
128-
sudo locale-gen en_US.UTF-8
129-
```
130-
131-
If after, you receive a warning (`bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf-8)`) in your terminal, please do the following:
132-
133-
<details>
134-
<summary>Generate locale</summary>
135-
136-
Please, run this lines in your terminal.
137-
138-
```bash
139-
sudo update-locale LANG=en_US.UTF8
140-
sudo apt-get update
141-
sudo apt-get install language-pack-en language-pack-en-base manpages
142-
```
143-
</details>

0 commit comments

Comments
 (0)