]> git.lyx.org Git - features.git/commitdiff
set version automatically when computing po stats
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 4 Jan 2008 17:01:08 +0000 (17:01 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 4 Jan 2008 17:01:08 +0000 (17:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22366 a592a061-630c-0410-9148-cb99ea01b6c8

po/Makefile.in.in
po/postats.py

index ae4b274990bf6351eb2ae728f708c80b0a9dc602..1d06dd39851c895a3e407f23e3780d8a060dc93e 100644 (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
index 75925f6a920c386e6e94cae64c068054782d36ea..9b8795170f559d78a27e69c95156726cb1a221e2 100644 (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:]]))