On Tue, Jan 10, 2012 at 10:56 PM, Andreas Rönnquist <mailingli...@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 -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAKTje6GK=U-qSFKM-e=r32dhybwf41z7kzwige55_sr5mwh...@mail.gmail.com