X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2Fpostats.py;h=29a243eccc5581d0f98f01f141542bd54326c78e;hb=7021f4c3421afc74ca0c52c038743dad4a222aa9;hp=9b8795170f559d78a27e69c95156726cb1a221e2;hpb=1dd68530a6aa50d303b1d4ffec1ce56aeb1d40c0;p=lyx.git diff --git a/po/postats.py b/po/postats.py old mode 100644 new mode 100755 index 9b8795170f..29a243eccc --- a/po/postats.py +++ b/po/postats.py @@ -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 """ -""" % (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]))