From 2d491e69a7ca740b4fadeba5c95a5e0f9d212ee3 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 01 Apr 2009 18:08:39 +0000 Subject: fixed bug that was breaking genpot --- (limited to 'svg/printheap.py') diff --git a/svg/printheap.py b/svg/printheap.py index 42cd38c..66991b0 100644 --- a/svg/printheap.py +++ b/svg/printheap.py @@ -29,9 +29,6 @@ import gettext def main(): myname = "printheap" - mystring = "show heap" - mygroup = "sensors" - if len(sys.argv) != 2: print "Error: Usage is " + myname + ".py lang" return @@ -40,7 +37,10 @@ def main(): _ = t.ugettext t.install() - print _(mystring) + mystring = _("show heap") + mygroup = "sensors" + + print mystring data0 = \ " \n \ @@ -106,7 +106,7 @@ def main(): \n \ \n" - strings = _(mystring).split(" ",2) + strings = mystring.split(" ",2) FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname+".svg"), "w") FILE.write(data0) if len(strings) == 1: -- cgit v0.9.1