[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing the locale directory
From: |
Bruno Haible |
Subject: |
Re: Changing the locale directory |
Date: |
Tue, 13 Jan 2004 14:14:21 +0100 |
User-agent: |
KMail/1.5 |
Jean-Marc Lasgouttes wrote:
> I have a program (www.lyx.org) in which I would like to change the
> locale directory twice: bindtextdomain is called first at main() time
> to set the locale directory to its hardcoded value; it is invoked
> again later once the directory from which is running has been
> investigated.
Should work. bindtextdomain() supports multiple calls for the same domain.
> (the idea is to allow binary distributions to be relocatable)
gettext already has an option --enable-relocatable to produce relocatable
binary distributions. You might want to look how it works. The files are:
config/install-reloc
config/reloc-ldflags
gettext-tools/m4/relocatable.m4
gettext-tools/lib/relocatable.c
gettext-tools/lib/progreloc.c
gettext-tools/lib/relocwrapper.c
gettext-tools/lib/relocatable.h
gettext-tools/lib/Makefile.am
gettext-tools/src/Makefile.am
Bruno