What is the best way to use msgfmt in a Makefile.am for localization of
files? Back in 2003 there was a discussion about introducing something like:
locale_POTS = foo.pot
foo_pot_SOURCES = a.c a.h b.c b.h ...
foo_pot_LANGFILE = LINGUAS
foo_pot_XGETTEXTFLAGS = --keyword=_ --keyword=N_
Has this happened, is this available?
At the moment the Makefile.am has the following code:
.po.mo:
$(MSGFMT) -o $@ $<
PHP_LOCALE_DE_PO = php/admin/locale/de/LC_MESSAGES/messages.po
PHP_LOCALE_DE_MO = php/admin/locale/de/LC_MESSAGES/messages.mo
localedir = $(phpkolabdir)/locale
phplocalededir = $(localedir)/de/LC_MESSAGES
phplocalede_DATA = $(PHP_LOCALE_DE_MO)
That is repeated for several languages. If I may ask...., how to improve
this?? The current problem is that 'make distcheck' fails with the following
error:
msgfmt -o
php/admin/locale/de/LC_MESSAGES/messages.mo
../../php/admin/locale/de/LC_MESSAGES/messages.po
msgfmt: error while opening "php/admin/locale/de/LC_MESSAGES/messages.mo" for
writing: unknown directory of file.
This is due to the output directory not being created.
--
Thanks in advance,
Richard Bos
Without a home the journey is endless