diff options
author | Walter Bender <walter@walter-laptop.(none)> | 2009-04-01 18:08:39 (GMT) |
---|---|---|
committer | Walter Bender <walter@walter-laptop.(none)> | 2009-04-01 18:08:39 (GMT) |
commit | 2d491e69a7ca740b4fadeba5c95a5e0f9d212ee3 (patch) | |
tree | af7077a968091f05267c3602749b5b0d9835f9ae /svg/setxy.py | |
parent | b6850a3e0b6dd3d56a3e50cdcb7e03cb75a3ef5e (diff) |
fixed bug that was breaking genpot
Diffstat (limited to 'svg/setxy.py')
-rw-r--r-- | svg/setxy.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/svg/setxy.py b/svg/setxy.py index f706b86..fc85156 100644 --- a/svg/setxy.py +++ b/svg/setxy.py @@ -29,11 +29,6 @@ import gettext def main(): myname = "setxy" - mystring1 = "set xy" - mystring2 = "x" - mystring3 = "y" - mygroup = "turtle" - if len(sys.argv) != 2: print "Error: Usage is " + myname + ".py lang" return @@ -42,9 +37,14 @@ def main(): _ = t.ugettext t.install() - print _(mystring1) - print _(mystring2) - print _(mystring3) + mystring1 = _("set xy") + mystring2 = _("x") + mystring3 = _("y") + mygroup = "turtle" + + print mystring1 + print mystring2 + print mystring3 data0 = \ "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ @@ -121,11 +121,11 @@ def main(): FILE = open(os.path.join("../images", sys.argv[1], mygroup, myname + ".svg"), "w") FILE.write(data0) - FILE.write(_(mystring1).encode("utf-8")) + FILE.write(mystring).encode("utf-8")) FILE.write(data1) - FILE.write(_(mystring2).encode("utf-8")) + FILE.write(mystring2.encode("utf-8")) FILE.write(data2) - FILE.write(_(mystring3).encode("utf-8")) + FILE.write(mystring3.encode("utf-8")) FILE.write(data3) FILE.close() return |