A few users have some problems with app-admin/localepurge so i will xplain how o t use it :)
Actually you can use 2 versions. 0.4 version is considered stable and 0.5 is masked because it add a new feature, the multidir search. Use both by your own risk.
# emerge app-admin/localepurge
You just need to uncomment the features you want to use, and add the locales you want to keep in your system.
# vi /etc/locale.nopurge
# less /var/cache/localepurge/localelist
# localepurge
You can use a few options in command line:
And some options in the config file:
enjoy :)
ok, I’ve used it.
I didn’t realize that I have setted LC_ALL=”es_AR” and zap all locales except “es_ES” (which is not what I’ve configured on the system.
Now my apps refuses to appear in spanish and give me a lot of weird console errors about locale.
What must I do???
Thanks
I made a mistake.
The man says: “The only way to reinstall any lost locales is “remerging” the ebuild.”
OK, which ebuilds I must “remerge” for recover lost locales?
Thanks
lanarak, your mistake is common, for it you must use this script by your own risk… ecause you cannot undelete it.
Each app have have its own locales files, so you must reinstall, all apps you need in spanish…
and don forget to add es_AR to locale.nopurge the next time.
good luck
Thanks!!!
I’m doing it, emerging a bunch of things again is a lesson I won’t forget easily ;)
Regards
Hi.
I thinks this script should have an option to automatically make a backup (tar) of man/locales it is going to remove. Recovering from any failure would be easier this way.
This is a great idea for a program. I have a small suggestion: why not add a –pretend or –ask option, like what emerge offers, so that you can see what is to be deleted before committing?
If well configured you dont need to do a backup because the script only remove unused languages…
So if anyone want to send me a patch are welcome :)
Today I installed your script and it works good.
I have 2 suggestions:
1) Why doesn’t the script remove folders with locales? In directory /usr/share/locale. It removes only files.
2) there are also localised help files. For example in dir ‘/usr/share/gnome/help/’. It would be great remove these files too.
Thanks for your suggest, i will think about it :)
regards
Offshore web hosting provides you the edge of NOT becoming topic to your local legal guidelines, supplying you more flexibility about the variety of articles you want to host. Fray