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/hideblocks.py') diff --git a/svg/hideblocks.py b/svg/hideblocks.py index 2fc5b16..6c92cf9 100644 --- a/svg/hideblocks.py +++ b/svg/hideblocks.py @@ -29,9 +29,6 @@ import gettext def main(): myname = "hideblocks" - mystring1 = "hide blocks" - mygroup = "templates" - 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 = _("hide blocks") + mygroup = "templates" + + print mystring1 data0 = \ " \n \ @@ -109,7 +109,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