X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=po%2Fpostats.py;h=29a243eccc5581d0f98f01f141542bd54326c78e;hb=4038ef8bea4f918462db54cfedc2db5550e09561;hp=e4c38572facc936ef4199702337817144b6b2296;hpb=ad91a16657a25dbf68decd18ba22c0efb050e358;p=lyx.git diff --git a/po/postats.py b/po/postats.py index e4c38572fa..29a243eccc 100755 --- a/po/postats.py +++ b/po/postats.py @@ -31,6 +31,8 @@ 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 @@ -125,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]))