set version automatically when computing po stats

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22366 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2008-01-04 17:01:08 +00:00
parent d43731fa17
commit 1dd68530a6
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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:]]))