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/templatesgroup.py | |
parent | b6850a3e0b6dd3d56a3e50cdcb7e03cb75a3ef5e (diff) |
fixed bug that was breaking genpot
Diffstat (limited to 'svg/templatesgroup.py')
-rw-r--r-- | svg/templatesgroup.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/svg/templatesgroup.py b/svg/templatesgroup.py index 847fbc3..1ba6929 100644 --- a/svg/templatesgroup.py +++ b/svg/templatesgroup.py @@ -29,11 +29,6 @@ import gettext def main(): myname = "templatesgroup" - mystring1 = "Templates" - mystring2 = "hide blocks" - mystring3 = "sound" - mygroup = "templates" - 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 = _("Templates") + mystring2 = _("hide blocks") + mystring3 = _("sound") + mygroup = "templates" + + print mystring1 + print mystring2 + print mystring3 data0 = \ @@ -666,9 +666,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) - strings = _(mystring2).split(" ",2) + strings = mystring2.split(" ",2) if len(strings) == 1: FILE.write(data2a) FILE.write(strings[0].encode("utf-8")) @@ -678,7 +678,7 @@ def main(): FILE.write(data3b) FILE.write(strings[1].encode("utf-8")) FILE.write(data4) - FILE.write(_(mystring3).encode("utf-8")) + FILE.write(mystring3.encode("utf-8")) FILE.write(data5) FILE.close() return |