2009-11-17 Robert Millan <rmh.grub@aybabtu.com>

* Makefile.in (XGETTEXT, MSGMERGE, MSGFMT, LINGUAS): New variables.
        (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
        (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
        (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
        * po/LINGUAS: New file.
This commit is contained in:
Robert Millan 2009-11-17 11:20:39 +00:00
parent 336262f829
commit 8c37c91f99
3 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,11 @@
2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
* Makefile.in (XGETTEXT, MSGMERGE, MSGFMT, LINGUAS): New variables.
(po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
(po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
(po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
* po/LINGUAS: New file.
2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
* configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among

View File

@ -41,7 +41,11 @@ includedir = @includedir@
pkgdatadir = $(datadir)/`echo @PACKAGE_TARNAME@ | sed '$(transform)'`
pkglibdir = $(libdir)/`echo @PACKAGE_TARNAME@/$(target_cpu)-$(platform) | sed '$(transform)'`
LINGUAS = ca
XGETTEXT = @XGETTEXT@
MSGMERGE = @MSGMERGE@
MSGFMT = @MSGFMT@
LINGUAS = $(shell tr '\n' ' ' < $(srcdir)/po/LINGUAS)
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
@ -467,14 +471,14 @@ genkernsyms.sh: genkernsyms.sh.in config.status
$(SHELL) ./config.status
po/$(PACKAGE).pot: po/POTFILES
xgettext --from-code=utf-8 --keyword=_ -f $< -o $@
$(XGETTEXT) --from-code=utf-8 --keyword=_ -f $< -o $@
po/*.po: po/$(PACKAGE).pot
msgmerge -U $@ po/$(PACKAGE).pot
$(MSGMERGE) -U $@ po/$(PACKAGE).pot
po/%.mo: po/%.po
$(MKDIR_P) $$(dirname $@)
msgfmt -c --statistics -o $@ $^
$(MSGFMT) -c --statistics -o $@ $^
.PHONY: all install install-strip uninstall clean mostlyclean distclean
.PHONY: maintainer-clean info dvi dist check

1
po/LINGUAS Normal file
View File

@ -0,0 +1 @@
ca