Re: Removing unwanted internationalization info



Thanks for the info. Looks like I'll be recompiling gnome then :)

Mark.

On Tue, 2004-06-15 at 22:02, Danilo Šegan wrote:
> Hi Mark, Christian,
> 
> Today at 21:40, Christian Rose wrote:
> 
> > tis 2004-06-15 klockan 10.09 skrev Mark Phalan:
> >> I'm trying to squeeze gnome into as small a space as possible and was
> >> wondering if there is an easy way to remove all the unwanted locale info
> >> (I just need us english for the moment) which is included in the
> >> /etc/gconf/ files. I suppose I could write something to strip out all
> >> the info I don't need based on locale name but it would make my life
> >> easier if there was some existing tool.
> >> Maybe this can be done at compile/install time?
> >
> > Yes, to disable translations you can modify the ALL_LINGUAS line of
> > configure.in to only include the translations you want, before
> > compiling. That's the easiest way to disable translations.
> 
> Not even that would help, since intltool works with all the *.po files
> it can find in a po directory.  That's bad, so I invite anyone to work
> on a patch ;)
> 
> If you really need to save space, here's what I would do:
>   export LINGUAS="sr" # just Serbian
>   for i in package/po/*.po; do \
>       if [ "x$i" != "xpackage/po/sr.po" ]; then
>          mv $i $i.bah # hey, lets back it up ;)
>       fi
>   done
>   (cd package && ./configure && make && make install)
> 
> Basically, you're removing all the unneeded PO files, and modifying
> ALL_LINGUAS with LINGUAS environment variable (no need to edit
> configure.in or configure.ac).
> 
> Of course, recompiling the entire Gnome stack is necessary here,
> following these directions (if for instance you use jhbuild, just CVS
> update everything first, remove all the po files with 
> "rm jhbuildroot/*/po*/*.po", set LINGUAS="", and compile it).
> 
> Cheers,
> Danilo


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]