po: Add Greek translation and update Catalan and Spanish translations.
[pspp] / po / automake.mk
index 138f6ce333f9d067a92730839d7c167d6bbf84d4..98f9685313533c8a317c4f80ebcd755476378387 100644 (file)
@@ -8,10 +8,12 @@ POFILES = \
        po/ca.po \
        po/cs.po \
        po/de.po \
+       po/el.po \
        po/en_GB.po \
        po/es.po \
        po/fr.po \
        po/gl.po \
+       po/hu.po \
        po/ja.po \
        po/lt.po \
        po/nl.po \
@@ -40,7 +42,7 @@ $(POTFILE): $(TRANSLATABLE_FILES) $(UI_FILES) src/ui/gui/gen-dot-desktop.sh
        $(AM_V_GEN)$(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS)    $(TRANSLATABLE_FILES) --language=C --keyword=_ --keyword=N_ -o $@,tmp
        $(AM_V_at)$(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS) -j $(UI_FILES) --language=glade -o $@,tmp
        $(AM_V_at)$(XGETTEXT) --directory=$(top_srcdir) $(XGETTEXT_OPTIONS) -j src/ui/gui/gen-dot-desktop.sh --language=shell --keyword=TRANSLATE -o $@,tmp
-       $(SED) -e '/^"POT-Creation-Date: .*/d' $@,tmp > $@
+       $(AM_V_at)$(SED) -e '/^"POT-Creation-Date: .*/d' $@,tmp > $@
 
 $(POFILES): $(POTFILE)
        $(AM_V_GEN)$(MSGMERGE) --quiet $(top_srcdir)/$@ $? -o $@,tmp
@@ -48,7 +50,9 @@ $(POFILES): $(POTFILE)
                 touch $@,tmp ; \
                 msgcat --use-first $(top_srcdir)/$@,aux $@,tmp -o $@,tmp; \
        fi ;
-       $(SED) -e '/^"POT-Creation-Date: /d' $@,tmp > $@
+       $(AM_V_at)$(SED) -e '/^"POT-Creation-Date: /d' $@,tmp > $@,tmp2
+       $(RM) $@,tmp
+       mv $@,tmp2 $@
 
 SUFFIXES += .po .gmo
 .po.gmo: