diff options
Diffstat (limited to 'svg/if.py')
-rw-r--r-- | svg/if.py | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -29,10 +29,6 @@ import gettext def main(): myname = "if" - mystring1 = "if" - mystring2 = "then" - mygroup = "flow" - if len(sys.argv) != 2: print "Error: Usage is " + myname + ".py lang" return @@ -41,8 +37,12 @@ def main(): _ = t.ugettext t.install() - print _(mystring1) - print _(mystring2) + mystring1 = _("if") + mystring2 = _("then") + mygroup = "flow" + + print mystring1 + print mystring2 data0 = \ "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?> \n \ @@ -98,9 +98,9 @@ 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(mystring1.encode("utf-8")) FILE.write(data1) - FILE.write(_(mystring2).encode("utf-8")) + FILE.write(mystring2.encode("utf-8")) FILE.write(data2) FILE.close() return |