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:
parent
336262f829
commit
8c37c91f99
3 changed files with 17 additions and 4 deletions
|
@ -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>
|
2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
|
||||||
|
|
||||||
* configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
|
* configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
|
||||||
|
|
12
Makefile.in
12
Makefile.in
|
@ -41,7 +41,11 @@ includedir = @includedir@
|
||||||
pkgdatadir = $(datadir)/`echo @PACKAGE_TARNAME@ | sed '$(transform)'`
|
pkgdatadir = $(datadir)/`echo @PACKAGE_TARNAME@ | sed '$(transform)'`
|
||||||
pkglibdir = $(libdir)/`echo @PACKAGE_TARNAME@/$(target_cpu)-$(platform) | 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_NAME = @PACKAGE_NAME@
|
||||||
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
||||||
|
@ -467,14 +471,14 @@ genkernsyms.sh: genkernsyms.sh.in config.status
|
||||||
$(SHELL) ./config.status
|
$(SHELL) ./config.status
|
||||||
|
|
||||||
po/$(PACKAGE).pot: po/POTFILES
|
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
|
po/*.po: po/$(PACKAGE).pot
|
||||||
msgmerge -U $@ po/$(PACKAGE).pot
|
$(MSGMERGE) -U $@ po/$(PACKAGE).pot
|
||||||
|
|
||||||
po/%.mo: po/%.po
|
po/%.mo: po/%.po
|
||||||
$(MKDIR_P) $$(dirname $@)
|
$(MKDIR_P) $$(dirname $@)
|
||||||
msgfmt -c --statistics -o $@ $^
|
$(MSGFMT) -c --statistics -o $@ $^
|
||||||
|
|
||||||
.PHONY: all install install-strip uninstall clean mostlyclean distclean
|
.PHONY: all install install-strip uninstall clean mostlyclean distclean
|
||||||
.PHONY: maintainer-clean info dvi dist check
|
.PHONY: maintainer-clean info dvi dist check
|
||||||
|
|
1
po/LINGUAS
Normal file
1
po/LINGUAS
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ca
|
Loading…
Reference in a new issue