Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ho fatto il classico, ma ...
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4791
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sat Sep 23, 2023 1:55 pm    Post subject: ho fatto il classico, ma ... Reply with quote

Code:

cloc3@cloc3 ~ $ chvt 3
Δέν μπορώ να λάβω περιγραφέα αρχείου πού αφορά την κονσόλα.


qual è la variabile d'ambiente che determina la lingua degli output di sistema su terminale?
_________________
vu vu vu
gentù
mi piaci tu


Last edited by cloc3 on Thu Sep 28, 2023 7:08 pm; edited 2 times in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30918
Location: here

PostPosted: Sun Sep 24, 2023 8:14 am    Post subject: Reply with quote

Sono quelle che vedi lanciando il comando locale.
Se devi cambiare localizzazione dai un'occhiata alla pagina wiki https://wiki.gentoo.org/wiki/Localization/Guide.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4791
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Sun Sep 24, 2023 4:26 pm    Post subject: Reply with quote

fedeliallalinea wrote:
Sono quelle che vedi lanciando il comando locale.
Se devi cambiare localizzazione dai un'occhiata alla pagina wiki https://wiki.gentoo.org/wiki/Localization/Guide.

in genere faccio un grep sul comando env, comunque:
Code:
cloc3 ~ # locale
LANG=it_IT.utf8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=it_IT.UTF-8

cloc3 ~ # localectl | grep "System Locale"
System Locale: LANG=it_IT.utf8

cloc3 ~ # cat /etc/env.d/02locale
TSLIB_CONFFILE="/etc/ts.conf"
TSLIB_TSDEVICE="/dev/input/event13"
EDITOR="/usr/bin/vi"
LC_ALL="it_IT.UTF-8"
LC_LANG="it_IT.UTF-8"
LINGUAS="it en_GB el"
LANGUAGE="it"
LIB=lib
LANG="it_IT.utf8"
LC_NUMERIC="it_IT.utf8"
LC_CTYPE="it_IT.utf8"
LC_COLLATE="it_IT.utf8"
LC_TIME="it_IT.utf8"
LC_MONETARY="it_IT.utf8"
LC_MEASUREMENT="it_IT.utf8"

naturalmente l'alfabeto greco è installato nel sistema, in quanto:
Code:
cloc3 ~ # cat /etc/locale.gen |grep -v ^#
en_GB ISO-8859-1
en_US ISO-8859-1
en_GB.UTF-8 UTF-8
en_US.UTF-8 UTF-8
el_GR@euro ISO-8859-7
el_GR.UTF-8 UTF-8
el_GR CP1253
ar_IQ.UTF-8 UTF-8
it_IT ISO-8859-1
it_IT@euro ISO-8859-15
it_IT.UTF-8 UTF-8
cloc3 ~ # locale -a
ar_IQ.utf8
C
C.utf8
el_GR
el_GR.cp1253
el_GR@euro
el_GR.iso88597@euro
el_GR.utf8
en_GB
en_GB.iso88591
en_GB.utf8
en_US
en_US.iso88591
en_US.utf8
it_IT
it_IT@euro
it_IT.iso88591
it_IT.iso885915@euro
it_IT.utf8
POSIX

tuttavia, non riesco a capire bene come mai, in certi momenti, la lingua greca venga selezionata di default per certi messaggi di sistema.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30918
Location: here

PostPosted: Sun Sep 24, 2023 5:00 pm    Post subject: Reply with quote

Cosa torna il comando eselect locale list.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4791
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Mon Sep 25, 2023 8:57 am    Post subject: Reply with quote

fedeliallalinea wrote:
Cosa torna il comando eselect locale list.

Code:
cloc3 ~ # eselect locale show
LANG variable in profile:
  it_IT.utf8
cloc3 ~ # eselect locale list
Available targets for the LANG variable:
  [1]   ar_IQ.utf8
  [2]   C
  [3]   C.utf8
  [4]   el_GR
  [5]   el_GR.cp1253
  [6]   el_GR@euro
  [7]   el_GR.iso88597@euro
  [8]   el_GR.utf8
  [9]   en_GB
  [10]  en_GB.iso88591
  [11]  en_GB.utf8
  [12]  en_US
  [13]  en_US.iso88591
  [14]  en_US.utf8
  [15]  it_IT
  [16]  it_IT@euro
  [17]  it_IT.iso88591
  [18]  it_IT.iso885915@euro
  [19]  it_IT.utf8 *
  [20]  POSIX
  [ ]   (free form)

_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1015

PostPosted: Mon Sep 25, 2023 11:07 am    Post subject: Reply with quote

Ciao

nel file locale.gen

Rimuovi
Code:
el_GR@euro ISO-8859-7
el_GR.UTF-8 UTF-8
el_GR CP1253


è la selezione del greco (Ellenic_Greek)
probabilmente l'hai confusa con EN_GB

e
Code:
ar_IQ.UTF-8 UTF-8

Arabic Iraq

Se non ne hai bisogno ...

ridai
Code:
locale-gen



controlla anche cosa hai impostato nel make.conf
Quote:
LINGUAS="it en_GB el"


LINGUAS non è più utilizzata come vriabile

or c'è

L10N
e
LANG
_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4791
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Tue Sep 26, 2023 7:21 am    Post subject: Reply with quote

sabayonino wrote:
Rimuovi
Code:
el_GR@euro ISO-8859-7
el_GR.UTF-8 UTF-8
el_GR CP1253


è la selezione del greco (Ellenic_Greek)
probabilmente l'hai confusa con EN_GB

no. en_GB è già presente in /etc/locale.gen.

questa selezione è voluta, perché desidero includere le impostazioni in caratteri grechi nel sistema.
quello che mi sfugge è come mai non riesca a controllare i default di certi output.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30918
Location: here

PostPosted: Tue Sep 26, 2023 7:30 am    Post subject: Reply with quote

E dal tuo utente senza privilegi cosa torna il comando env?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4791
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Tue Sep 26, 2023 7:46 am    Post subject: Reply with quote

fedeliallalinea wrote:
E dal tuo utente senza privilegi cosa torna il comando env?

in effetti:
Code:
cloc3@cloc3 ~ $ env|grep el
...
LANGUAGE=it:en_US:el

evidentemente, LANGUAGE viene letta a rovescio, e modificandola il comportamento dei default cambia.
adesso vorrei capire come viene impostata quella variabile.

i file .bashrc e .profile non sono responsabili.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
sabayonino
Veteran
Veteran


Joined: 03 Jan 2012
Posts: 1015

PostPosted: Tue Sep 26, 2023 10:08 am    Post subject: Reply with quote

cloc3 wrote:

quello che mi sfugge è come mai non riesca a controllare i default di certi output.


Potresti essere più preciso su cosa vorresti fare ?
A quali output ti riferisci ?

qualche altro esempio oltre al primo giusto per avere un riferimento di partenza

[edit] dalla pagina wiki ci sono questi due avvisi

Quote:

Nota
Alcuni programmi sono scritti in modo tale da aspettarsi l'ordinamento tradizionale dell'alfabeto inglese, mentre alcune localizzazioni, in particolare l'Estone, utilizzano un ordinamento diverso. Pertanto si consiglia di impostare in modo esplicito LC_COLLATE a C quando si tratta di impostazioni di sistema.


Quote:

Attenzione
Utilizzare LC_ALL è fortemente sconsigliato poiché esclude automaticamente tutte le altre variabili LC_* (LANG non ne è influenzato). Ciò significa che le modifiche apportate tramite altri mezzi saranno nascoste fino a che LC_ALL verrà impostato su stringa vuota. Probabilmente è meglio non impostarlo in un file di avvio.

_________________
LRS i586 on G.Drive
LRS x86-64 EFI on MEGA
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30918
Location: here

PostPosted: Tue Sep 26, 2023 11:26 am    Post subject: Reply with quote

cloc3 wrote:
evidentemente, LANGUAGE viene letta a rovescio, e modificandola il comportamento dei default cambia.

No, viene letta in modo corretto infatti se anche io lancio il comando chvt con
Code:
$ LANGUAGE=it:en:el  chvt 3
Δέν μπορώ να λάβω περιγραφέα αρχείου πού αφορά την κονσόλα.

mi parla greco ma se aggiungo un de prima di el
Code:
$ LANGUAGE=it:en:de:el  chvt 3               
Dateideskriptor, der auf die Konsole verweist, konnte nicht gefunden werden

come mi aspetto parla tedesco.
Sembra che la variabile LANGUAGE non gli piaccia en per l'inglese, e questo è abbastanza logico visto che non esiste il file /usr/share/locale/en/kbd.mo (non esiste per quasi nessun comando).
Per ovviare a questo basta mettere C al posto di en che abilita la lingua di default del comando (solitamente inglese).
Code:
$ LANGUAGE=it:C:el  chvt 3
Couldn't get a file descriptor referring to the console.

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4791
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Thu Sep 28, 2023 3:12 pm    Post subject: Reply with quote

fedeliallalinea wrote:

mi parla greco ma se aggiungo un de prima di el
Code:
$ LANGUAGE=it:en:de:el  chvt 3               
Dateideskriptor, der auf die Konsole verweist, konnte nicht gefunden werden

come mi aspetto parla tedesco.

:?:
in verità, io mi aspetterei italiano se la variabile fosse letta a dritta (cioè da sinistra a destra) e il greco se fosse letta a rovescio.
come mai tu ti aspetti il tedesco?
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30918
Location: here

PostPosted: Thu Sep 28, 2023 6:03 pm    Post subject: Reply with quote

cloc3 wrote:
in verità, io mi aspetterei italiano se la variabile fosse letta a dritta (cioè da sinistra a destra) e il greco se fosse letta a rovescio.
come mai tu ti aspetti il tedesco?

Semplicemente perché, per questo comando, la traduzione tedesca esiste e qualla italiana no
Code:
$ equery f sys-apps/kbd
...
/usr/share/locale
/usr/share/locale/cs
/usr/share/locale/cs/LC_MESSAGES
/usr/share/locale/cs/LC_MESSAGES/kbd.mo
/usr/share/locale/da
/usr/share/locale/da/LC_MESSAGES
/usr/share/locale/da/LC_MESSAGES/kbd.mo
/usr/share/locale/de
/usr/share/locale/de/LC_MESSAGES
/usr/share/locale/de/LC_MESSAGES/kbd.mo
/usr/share/locale/el
/usr/share/locale/el/LC_MESSAGES
/usr/share/locale/el/LC_MESSAGES/kbd.mo
/usr/share/locale/eo
/usr/share/locale/eo/LC_MESSAGES
/usr/share/locale/eo/LC_MESSAGES/kbd.mo
/usr/share/locale/es
/usr/share/locale/es/LC_MESSAGES
/usr/share/locale/es/LC_MESSAGES/kbd.mo
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/locale/fr/LC_MESSAGES/kbd.mo
/usr/share/locale/gr
/usr/share/locale/gr/LC_MESSAGES
/usr/share/locale/gr/LC_MESSAGES/kbd.mo
/usr/share/locale/id
/usr/share/locale/id/LC_MESSAGES
/usr/share/locale/id/LC_MESSAGES/kbd.mo
/usr/share/locale/it
/usr/share/locale/it/LC_MESSAGES
/usr/share/locale/it/LC_MESSAGES/kbd.mo
/usr/share/locale/nl
/usr/share/locale/nl/LC_MESSAGES
/usr/share/locale/nl/LC_MESSAGES/kbd.mo
/usr/share/locale/pl
/usr/share/locale/pl/LC_MESSAGES
/usr/share/locale/pl/LC_MESSAGES/kbd.mo
/usr/share/locale/pt
/usr/share/locale/pt/LC_MESSAGES
/usr/share/locale/pt/LC_MESSAGES/kbd.mo
/usr/share/locale/pt_BR
/usr/share/locale/pt_BR/LC_MESSAGES
/usr/share/locale/pt_BR/LC_MESSAGES/kbd.mo
/usr/share/locale/ro
/usr/share/locale/ro/LC_MESSAGES
/usr/share/locale/ro/LC_MESSAGES/kbd.mo
/usr/share/locale/ru
/usr/share/locale/ru/LC_MESSAGES
/usr/share/locale/ru/LC_MESSAGES/kbd.mo
/usr/share/locale/sr
/usr/share/locale/sr/LC_MESSAGES
/usr/share/locale/sr/LC_MESSAGES/kbd.mo
/usr/share/locale/sv
/usr/share/locale/sv/LC_MESSAGES
/usr/share/locale/sv/LC_MESSAGES/kbd.mo
/usr/share/locale/tr
/usr/share/locale/tr/LC_MESSAGES
/usr/share/locale/tr/LC_MESSAGES/kbd.mo
/usr/share/locale/uk
/usr/share/locale/uk/LC_MESSAGES
/usr/share/locale/uk/LC_MESSAGES/kbd.mo
/usr/share/locale/vi
/usr/share/locale/vi/LC_MESSAGES
/usr/share/locale/vi/LC_MESSAGES/kbd.mo
/usr/share/locale/zh_CN
/usr/share/locale/zh_CN/LC_MESSAGES
/usr/share/locale/zh_CN/LC_MESSAGES/kbd.mo
...

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4791
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Thu Sep 28, 2023 7:27 pm    Post subject: Reply with quote

fedeliallalinea wrote:
cloc3 wrote:
in verità, io mi aspetterei italiano se la variabile fosse letta a dritta (cioè da sinistra a destra) e il greco se fosse letta a rovescio.
come mai tu ti aspetti il tedesco?

Semplicemente perché, per questo comando, la traduzione tedesca esiste e quella italiana no

fantastico. grazie.

ho trovato anche il posto per aggiustare il default per la variabile LANGUAGE (in kde).
è il file .config/kdeglobals.

a quanto pare si può editare a mano e viene conservato dopo il riavvio della sessione.
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum