summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'po/Makefile')
-rw-r--r--po/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/po/Makefile b/po/Makefile
index d15e46e8..3271f59c 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -35,11 +35,14 @@ merge: $(PGOAL).pot
$(PGOAL).pot: $(CFILES)
xgettext -F -n --add-comments \
- --keyword=_ --keyword=__ --keyword=N_ --keyword=N \
- --keyword=gettext \
- --language=C -o placeholder.pot $(CFILES)
- perl_checker -q --generate-pot $(PGOAL)_tmp.pot $(PL_FILES) || rm -f $(PGOAL)_tmp.pot
+ --keyword=_ --keyword=__ --keyword=N_ --keyword=N \
+ --keyword=gettext \
+ --language=C -o placeholder.pot $(CFILES)
+ xgettext -F -n --add-comments \
+ --keyword=N_ --keyword=N \
+ --language=Perl -o $(PGOAL)_tmp.pot $(PL_FILES)
[ ! -e $(PGOAL)_tmp.pot ] || msgcat --use-first placeholder.pot $(PGOAL)_tmp.pot > $@
+ perl -pi -es/perl-format/c-format/ $@
rm -f placeholder.pot $(PGOAL)_tmp.pot
install: all