diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-03 16:28:49 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-03 16:28:49 +0000 |
commit | 91a4f5f0940ac4da301180654f28d244b2bbe145 (patch) | |
tree | fdfc4a33556e7e0040f31c3f444b8e008937454f /po/Makefile | |
parent | 2d345769dcb5faddd213ed78fdcfbc62cc2e78fa (diff) | |
download | urpmi-91a4f5f0940ac4da301180654f28d244b2bbe145.tar urpmi-91a4f5f0940ac4da301180654f28d244b2bbe145.tar.gz urpmi-91a4f5f0940ac4da301180654f28d244b2bbe145.tar.bz2 urpmi-91a4f5f0940ac4da301180654f28d244b2bbe145.tar.xz urpmi-91a4f5f0940ac4da301180654f28d244b2bbe145.zip |
Surprisingly, xgettext does a better job than perl_checker at extracting
strings from Perl code.
Diffstat (limited to 'po/Makefile')
-rw-r--r-- | po/Makefile | 11 |
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 |