[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] How to test uninstalled program?
From: |
Bruno Haible |
Subject: |
Re: [bug-gettext] How to test uninstalled program? |
Date: |
Tue, 13 Sep 2011 00:20:17 +0200 |
User-agent: |
KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; ) |
Reuben Thomas wrote:
> So, I tried "make install", and now I get no translations. I
> configured hello with
>
> ./configure --prefix=$HOME/local --exec-prefix=$HOME/local/`uname -m`
>
> but ltrace tells me that gettext is looking for message catalogs in
> /usr/local:
>
> bindtextdomain("hello", "/usr/local/share/locale")
> = "/usr/local/share/locale"
>
> This looks like a bug in hello's build system
This is quite strange. When I take hello-2.6, configure it like you did,
and build it, I have the following definitions in src/Makefile:
prefix = /home/bruno/local
datarootdir = ${prefix}/share
datadir = ${datarootdir}
localedir = $(datadir)/locale
DEFS = -DLOCALEDIR=\"$(localedir)\" -DHAVE_CONFIG_H
and src/hello.c passes the value of LOCALEDIR as second argument to
bindtextdomain().
Where does your build tree of 'hello' differ?
Bruno
--
In memoriam Steve Biko <http://en.wikipedia.org/wiki/Steve_Biko>