Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USE_LANGUAGES=en es ja
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
wdreinhart
Guru
Guru


Joined: 11 Jun 2003
Posts: 569
Location: 4QFJ12345678

PostPosted: Tue Nov 16, 2004 7:13 pm    Post subject: USE_LANGUAGES=en es ja Reply with quote

Most Linux desktop apps have translations for many different languages. By default all of them are installed. I quick look in /usr/share/locale shows that I have 180 MBytes of localized strings in over 100 languages. Of that, only 3 languages occupying 17 MBytes of disk space contain strings I can read. IMHO, this runs counter to the Gentoo way of doing things. If I don't want to use KDE, I can build most apps without KDE support. If I can't read Korean, I still get all the Korean strings for every app that has a Korean translation. Is there any way to limit the locales installed to ones I have a hope of understanding? Would it break anything if I just deleted 90+ locales?
Back to top
View user's profile Send private message
Rav70
l33t
l33t


Joined: 11 Feb 2004
Posts: 607
Location: Poland

PostPosted: Tue Nov 16, 2004 7:31 pm    Post subject: Reply with quote

emerge localepurge. It's quite a good utility to get rid of unwanted locales.
Regards,
Rav
_________________
Q: Why is Microsoft's Product Support a failure?
A: Because Microsoft needs a Support Group instead.
Back to top
View user's profile Send private message
Rainbow goblin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Feb 2004
Posts: 132

PostPosted: Mon Jan 24, 2005 12:25 am    Post subject: Reply Reply with quote

From http://www.gentoo.org/doc/en/guide-localization.xml
************************************************
The userlocales USE flag

You will probably only use one or maybe two locales on your system. Up until now after compiling glibc a full set of all available locales has been created. As of now you can activate the userlocales USE flag und specify only the locales you will need in /etc/locales.build.

Code Listing 3.4: Activate the userlocales USE flag especially for glibc

echo "sys-libs/glibc userlocales" >> /etc/portage/package.use



Now specify the locales you want to be able to use:

Code Listing 3.5: nano -w /etc/locales.build

en_US/ISO-8859-1
en_US.UTF-8/UTF-8
de_DE/ISO-8859-1
de_DE@euro/ISO-8859-15


The next step is to re-compile glibc. Of course you can defer this until the next glibc upgrade is available.

**********************************************************
:P
Back to top
View user's profile Send private message
spaetz
n00b
n00b


Joined: 15 Dec 2003
Posts: 16

PostPosted: Sat Feb 12, 2005 1:18 pm    Post subject: Reply with quote

userlocales is for glibc. Fine. What about the gazillion of other packages? I have found no way yet to restrict the building, but to run localepurge afterwards.
Back to top
View user's profile Send private message
Flammie
Retired Dev
Retired Dev


Joined: 02 Jun 2003
Posts: 633
Location: Dublin, Ireland

PostPosted: Sat Feb 12, 2005 5:14 pm    Post subject: Reply with quote

Theoretically setting LINGUAS="foo bar baz" will only produce .mo-files of foo bar and baz languages, for all nls'd programs that use default autotoolset and gettext way of doing things... or was it some variable other than LINGUAS? Anyways, just use localepurge to be sure.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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