Supporting multiple gettext directories

Daniel Jacobowitz drow@false.org
Tue Mar 22 19:18:00 GMT 2005


On Tue, Mar 22, 2005 at 08:12:33PM +0100, Martin Pitt wrote:
> Paul Eggert [2005-03-22 10:46 -0800]:
> > glibc does support multiple directories, using bindtextdomain().
> 
> * How does this work? It is not documented in the manpage.
> 
> * Even if something like bindtextdomain ("mydomain",
>     "/usr/local/share/locale:/usr/share/locale") would work (it
>   doesn't at the moment) it would be impractical and inflexible to
>   modify each and every piece of software.

If the program uses bindtextdomain ("mydomain", PREFIX "/share/locale")
or something similar, then things will work exactly as you want them
to.  If it doesn't, the software is broken - it won't work with a
non-default prefix.  I fail to see the problem you are solving.

I have some patches lying around to do this in the more complicated
cases of programs which support post-install relocation.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



More information about the Libc-alpha mailing list