]> git.lyx.org Git - lyx.git/blobdiff - po/postats.py
Implement new recordUndoBufferParams method.
[lyx.git] / po / postats.py
old mode 100644 (file)
new mode 100755 (executable)
index 9b87951..29a243e
@@ -31,13 +31,16 @@ Invocation:
 # Note that an empty lyx_branch variable (ie svn trunk)
 # will "do the right thing".
 lyx_branch=""
+# these po-files will be skipped:
+ommitted = ('en.po')
 
 import os
 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):
     """
@@ -124,9 +127,9 @@ array ( 'langcode' => '%(langcode)s', "date" => "%(date)s",
 
 if __name__ == "__main__":
     if lyx_branch:
-        branch_tag = "branches/%s" % lyx_branch
+        branch_tag = lyx_branch
     else:
-        branch_tag = "trunk"
+        branch_tag = "master"
 
 
     print """<?php
@@ -137,5 +140,4 @@ $branch_tag = "%s";
 
 // The data itself
 $podata = array (%s
-)?>
-""" % (sys.argv[1], branch_tag, ",".join([run_msgfmt(po) for po in sys.argv[2:]]))
+)?>""" % (sys.argv[1], branch_tag, ",".join([run_msgfmt(po) for po in sys.argv[2:] if po not in ommitted]))