This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Supporting multiple gettext directories


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]