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