Hi,
I'm building a small program with internationalization support under Ubuntu 14.04 and there it's behaving as expected. I can also build the same tool on TC 7.x without problems. But on TC it's just not looking up the translations.
The source file is attached and can be build with the following Makefile:
CFLAGS=-W -Wall -O0 -g -std=c99
PROGS=\
test-gettext
all: ${PROGS}
%: %.c
$(CC) $(CFLAGS) -o $@ $<
clean:
$(RM) ${PROGS}
The first two steps for translation I did on Ubuntu:
- xgettext -kN_ -d test-gettext -o test-gettext.pot test-gettext.c
- msginit --no-translator -l de -o test-gettext-de.po -i test-gettext.pot
The binary translation file was created on TC (again):
- mkdir -p share/locale/de/LC_MESSAGES
- msgfmt -c -v -o share/locale/de/LC_MESSAGES/test-gettext.mo test-gettext-de.po
I'm using the
latest TC 7.x with the following TCEs in onboot.lst:
gcc.tcz
gettext.tcz
mc.tcz
mc-locale.tcz
compiletc.tcz
strace.tcz
gettext-dev.tcz
When I compare the strace (-f -e trace=file) on Ubuntu and TC I see that on Ubuntu it opens the test-gettext.mo file. In TC I don't even see a try to open it.
Any ideas what I am missing?