From 1dd68530a6aa50d303b1d4ffec1ce56aeb1d40c0 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 4 Jan 2008 17:01:08 +0000 Subject: [PATCH] set version automatically when computing po stats git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22366 a592a061-630c-0410-9148-cb99ea01b6c8 --- po/Makefile.in.in | 2 +- po/postats.py | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/po/Makefile.in.in b/po/Makefile.in.in index ae4b274990..1d06dd3985 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -414,7 +414,7 @@ ui_l10n.pot: $(top_srcdir)/lib/ui/*.ui $(top_srcdir)/lib/ui/*.inc python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t ui ${top_srcdir}/lib/ui/*.ui ${top_srcdir}/lib/ui/*.inc i18n.inc: $(POFILES) postats.py - (cd $(srcdir) ; python postats.py $(POFILES)) >$@ + (cd $(srcdir) ; python postats.py "$(VERSION)" $(POFILES)) >$@ external_l10n.pot: $(top_srcdir)/lib/external_templates python $(srcdir)/lyx_pot.py -b $(top_srcdir) -o $@ -t external ${top_srcdir}/lib/external_templates diff --git a/po/postats.py b/po/postats.py index 75925f6a92..9b8795170f 100644 --- a/po/postats.py +++ b/po/postats.py @@ -24,13 +24,12 @@ to retrieve the number of translated/fuzzy/untranslated messages, and generates a PHP web page. Invocation: - postats.py po_files > "pathToWebPages"/i18n.inc + postats.py lyx_version po_files > "pathToWebPages"/i18n.inc """ -# modify this when you change version +# modify this when you change branch # Note that an empty lyx_branch variable (ie svn trunk) # will "do the right thing". -lyx_version="1.6.0svn" lyx_branch="" import os @@ -139,4 +138,4 @@ $branch_tag = "%s"; // The data itself $podata = array (%s )?> -""" % (lyx_version, branch_tag, ",".join([run_msgfmt(po) for po in sys.argv[1:]])) +""" % (sys.argv[1], branch_tag, ",".join([run_msgfmt(po) for po in sys.argv[2:]])) -- 2.39.2