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/kbinput.py') diff --git a/svg/kbinput.py b/svg/kbinput.py index c0de47b..d1f284a 100644 --- a/svg/kbinput.py +++ b/svg/kbinput.py @@ -29,9 +29,6 @@ import gettext def main(): myname = "kbinput" - mystring1 = "read key" - 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 _(mystring1) + mystring1 = _("read key") + mygroup = "sensors" + + print mystring1 data0 = \ " \n \ @@ -120,7 +120,7 @@ def main(): FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") FILE.write(data0) - strings = _(mystring1).split(" ",2) + strings = mystring1.split(" ",2) if len(strings) == 1: FILE.write(data1a) FILE.write(strings[0].encode("utf-8")) -- cgit v0.9.1