Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/svg/setxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'svg/setxy.py')
-rw-r--r--svg/setxy.py22
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