]> git.lyx.org Git - lyx.git/blobdiff - po/postats.py
Yet more empty-->plain.
[lyx.git] / po / postats.py
index 75925f6a920c386e6e94cae64c068054782d36ea..e4c38572facc936ef4199702337817144b6b2296 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
@@ -38,7 +37,8 @@ import sys
 
 # Reset the locale
 import locale
-locale.setlocale(locale.LC_ALL, '') 
+locale.setlocale(locale.LC_ALL, 'C') 
+os.environ['LC_ALL'] = 'C'
 
 def extract_number(line, issues, prop):
     """
@@ -139,4 +139,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:]]))