summaryrefslogtreecommitdiff
path: root/po/Makefile.in.in
diff options
context:
space:
mode:
authorPawan Chitrakar <pawan@nplinux.org>2004-07-05 05:41:55 +0000
committerPawan Chitrakar <pachimho@src.gnome.org>2004-07-05 05:41:55 +0000
commitae770fa8f676733064af0b175e21d9051d37ce79 (patch)
tree8b9eb6663ecad22b55d6338773d3f909ef2b7b4c /po/Makefile.in.in
parentd8ef8e36733ef128ea2df8e39de61371b4fcd36e (diff)
downloadgtk+-ae770fa8f676733064af0b175e21d9051d37ce79.tar.gz
Updated Nepali Translation
2004-07-04 Pawan Chitrakar <pawan@nplinux.org> * ne.po: Updated Nepali Translation
Diffstat (limited to 'po/Makefile.in.in')
-rw-r--r--po/Makefile.in.in26
1 files changed, 19 insertions, 7 deletions
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
index 092b4e0dc3..2befb1a04e 100644
--- a/po/Makefile.in.in
+++ b/po/Makefile.in.in
@@ -21,6 +21,7 @@ SHELL = /bin/sh
srcdir = @srcdir@
top_srcdir = @top_srcdir@
+top_builddir = ..
VPATH = @srcdir@
prefix = @prefix@
@@ -41,7 +42,10 @@ GENCAT = @GENCAT@
GMSGFMT = @GMSGFMT@
MSGFMT = @MSGFMT@
XGETTEXT = @XGETTEXT@
-MSGMERGE = msgmerge
+INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
+INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
+MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
+GENPOT = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
DEFS = @DEFS@
CFLAGS = @CFLAGS@
@@ -91,12 +95,7 @@ all-yes: $(CATALOGS)
all-no:
$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
- $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
- --add-comments --keyword=_ --keyword=N_ \
- --files-from=$(srcdir)/POTFILES.in \
- && test ! -f $(GETTEXT_PACKAGE).po \
- || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \
- && mv $(GETTEXT_PACKAGE).po $(srcdir)/$(GETTEXT_PACKAGE).pot )
+ $(GENPOT)
install: install-exec install-data
install-exec:
@@ -226,6 +225,19 @@ update-po: Makefile
fi; \
done
+.po: Makefile
+ $(MAKE) $(PACKAGE).pot;
+ PATH=`pwd`/../src:$$PATH; \
+ echo; printf "$*: "; \
+ if $(MSGMERGE) $*; then \
+ rm -f $*.old.po; \
+ else \
+ echo "msgmerge for * failed!"; \
+ mv $*.old.po $*.po; \
+ fi; \
+ msgfmt --statistics $*.po; echo;
+
+
# POTFILES is created from POTFILES.in by stripping comments, empty lines
# and Intltool tags (enclosed in square brackets), and appending a full
# relative path to them