Penso che il file locale.conf dovrebbe avere più di 2 righe. Il mio lo fa. D’altra parte l’output di ‘locales’ sembra normale. Inserirò un file che è possibile copiare in /etc/locale.conf e / etc / default / locale sovrascrivendo entrambi i file. Ma per farlo in modo sicuro, prima dobbiamo copiare i file originali in modo da poterli ripristinare se necessario.
locale.conf-Italian.txt (230 Bytes)
Quindi questo è come (devi essere super user o root):
# cp /etc/locale.conf /etc/locale.conf.bak
# cp /etc/default/locale /etc/default/locale.bak
la l in locale è in minuscolo l Non so perché Discourse sta facendo questo quando inserisco un codice. Quindi ora hai salvato questi file nel caso in cui ciò che proviamo non funzioni.
Ora per sostituire i file scarica il file ‘locale.conf-Italian.txt’ e fai il cd nella directory in cui hai scaricato quel file e fai:
# cp locale.conf-Italian.txt /etc/locale.conf
# cp locale.conf-Italian.txt /etc/default/locale
e ricorda che deve ancora essere una l minuscola. In entrambi i casi, quando viene richiesto se si desidera sovrascrivere il file, selezionare immettere sì. Ora riavvia e guarda se qualcosa è cambiato.
Per spiegare cosa sto facendo qui> Sulla base di ciò che ho sul mio computer questi 2 file hanno contenuti identici, quindi ho preso il mio file e lo ho editato per sostituire en_US con it_IT per il locale italiano.
I think the locale.conf file should have more than 2 lines. Mine does. On the other hand the output of ‘locales’ looks normal. I’m going to post a file that you can copy to /etc/locale.conf and /etc/default/locale overwriting both files. But to do this safely we first copy the original files so you can revert to them if needed.
locale.conf-Italian.txt (230 Bytes)
So this is how to (you will need to be super user or root):
# cp /etc/locale.conf /etc/locale.conf.bak
# cp /etc/default/locale /etc/default/locale.bak
the l in locale is lowercase l I dont know why Discourse is doing this when I post as code. So now you have saved these files in case what we try does not work.
Now to replace the files download the ‘locale.conf-Italian.txt’ file and cd to the directory where you downloaded that file and do:
# cp locale.conf-Italian.txt /etc/locale.conf
# cp locale.conf-Italian.txt /etc/default/locale
and remember that is still supposed to be a lowercase l. In both cases when it asks if you want to overwrite the file select enter yes. Now reboot and see if anything changed.
To explain what I’m doing here > Based on what I have on my computer these 2 files have identical contents so I jut took my file and edited it to replace en_US with it_IT for the Italian locale.