Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] Problema localizzazione
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
ErniBrown
Apprentice
Apprentice


Joined: 19 Jan 2005
Posts: 276
Location: Seconda stella a destra e poi dritto fino al mattino...

PostPosted: Tue Oct 10, 2006 10:48 am    Post subject: [RISOLTO] Problema localizzazione Reply with quote

Allora, volevo dare una sistemata al pc, e ho seguito l'how-to per la localizzazione trovato sul forum. Dato che non avevo ancora sistemato l'unicode ho prima seguito questa guida. Ho quindi seguito tutte le indicazioni della prima guida, ma mi trovo con alcuni programmi incasinati: ad esempio amule adesso è in inglese, e l'unica lingua che accetta è quella del sistema (che secondo lui è in inglese). Poi distccmon-gui funziona, ma dà questo segnale di errore
Code:
(distccmon-gui:9732): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.


E poi cedega proprio non ne vuole sapere di partire, con questo messaggio di errore
Code:
(Point2Play_gui.py:9757): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
Traceback (most recent call last):
  File "/usr/lib/transgaming_cedega/Point2Play_gui.py", line 44, in ?
    locale.setlocale(locale.LC_ALL, '')
  File "/usr/lib/python2.4/locale.py", line 381, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting


Ho eliminato /etc/locales.build, come previsto dalle guide. Locale.gen invece è così, commenti a parte
Code:
en_US.UTF-8/UTF-8
en_US/ISO-8859-15
it_IT@euro/ISO-8859-15
it_IT.UTF-8/UTF-8


E in /etc/env.d/02locale ho
Code:
#### ISO8859-15
#LANG="it_IT@euro"
#LC_ALL="it_IT@euro"
#MM_CHARSET="ISO-8859-15"

#### UTF-8
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
MM_CHARSET="it_IT.UTF-8"

####LC_MESSAGE è stato necessario per far andare postgresql
LC_MESSAGES="it_IT@euro"


Sempre secondo le indicazioni del forum.

Ovviamente ho ricompilato le glibc, con la flag userlocales che secondo me è obsoleta, ma vabbè. In più ho provato a ricompilare gtk+, wxGtk e pygtk.

Una nota: se faccio locale-gen ottengo questo, che mi sembra un po' strano
Code:
 * Generating 2 locales (this might take a while)
 *  (1/2) Generating en_US.UTF-8/UTF-8 ...
cannot write output files to `(null)': No such file or directory          [ !! ]
 *  (2/2) Generating en_US/ISO-8859-15 ...
cannot open locale definition file `it_IT@euro/ISO-8859-15': Not a direc  [ !! ]
 * Generation complete

_________________
There are 10 kind of people:
those who understand binaries and
those who don't.


Last edited by ErniBrown on Tue Oct 10, 2006 4:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
syntaxerrormmm
Guru
Guru


Joined: 17 Apr 2005
Posts: 449
Location: Romano di Lombardia - BG - ITALY

PostPosted: Tue Oct 10, 2006 3:54 pm    Post subject: Re: Problema localizzazione Reply with quote

ErniBrown wrote:
Ho eliminato /etc/locales.build, come previsto dalle guide. Locale.gen invece è così, commenti a parte
Code:
en_US.UTF-8/UTF-8
en_US/ISO-8859-15
it_IT@euro/ISO-8859-15
it_IT.UTF-8/UTF-8
Il problema è qui, locale.gen vuole degli spazi dove tu hai usato gli slash. E si che è anche scritto nei commenti del file.

Una volta che hai aggiornato il file, ti consiglio un
Code:
locale-gen

Ciao.
_________________
"Every rule can be broken, but no rule may be ignored."

Last.fm - Gentoo 2006.1 on:
Acer Aspire 1355LC - suspend2-sources-2.6.18-r3
IBM Thinkpad T30 - suspend2-sources-2.6.19-r3
Back to top
View user's profile Send private message
ErniBrown
Apprentice
Apprentice


Joined: 19 Jan 2005
Posts: 276
Location: Seconda stella a destra e poi dritto fino al mattino...

PostPosted: Tue Oct 10, 2006 4:52 pm    Post subject: Reply with quote

Così imparo a copiare senza ragionarci troppo. Grazie mille!
_________________
There are 10 kind of people:
those who understand binaries and
those who don't.
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