Re: Gettext and $DESTDIR$prefix
On Tue, Jan 10, 2012 at 10:56 PM, Andreas Rönnquist
<mailinglists@gusnan.se> wrote:
> I am making a package (which I am upstream of) translatable using
> gettext - It is using a simple Makefile as build system, no autotools.
>
> Is there a way to come around the necessity to get LOCALEDIR (Which
> is basically ${DESTDIR}{$prefix}/share/locale) from the Makefile to
> the C source?
You would need to do that even if you switch from a Makefile to autotools.
> In other words - is there any simpler way to decide whether the
> package should load translations from /usr/... or /usr/local/... ?
Since $prefix is determined at build time, no there is not.
> Is this an acceptable way of doing it, or am I missing some gettext
> magic that I should be using instead? - This feels a bit "hackish"...
Thats the right way to do it, even in autotools based projects.
> Also - I could use hints on where to get gettext support - I cannot
> find any mailinglist, nor IRC-channel that is really suitable for this
> kind of question...
http://www.gnu.org/software/gettext/FAQ.html#general_mailinglist
I guess gettext is either on-topic in #gnu or you will find someone to
redirect you to the right place.
--
bye,
pabs
http://wiki.debian.org/PaulWise
Reply to: