Commit b498a61b authored by Loui Chang's avatar Loui Chang
Browse files

genpopo: Stop printing trailing php tag.



Signed-off-by: default avatarLoui Chang <louipc.ist@gmail.com>
parent 25e9bb16
......@@ -140,7 +140,7 @@ if force:
f = open(po,'w')
f.write(INC_HEADER)
f.write('\ninclude_once(\"en/%s\");\n' % po)
f.write('\n?>')
f.write('\n')
f.close()
f = open("en/"+po,'w')
......@@ -150,7 +150,6 @@ if force:
f.write('$_t["en"]["%s"] = "%s";\n' % (term, term))
f.write("\n");
f.write("?>");
f.close()
else:
# need to leave existing file intact, and only append on terms that are new
......@@ -184,13 +183,13 @@ else:
f = open(po,'w')
f.write("".join(contents))
f.write('\ninclude_once(\"en/%s\");\n' % po)
f.write("\n?>");
f.write("\n");
f.close()
else:
f = open(po,'w')
f.write(INC_HEADER)
f.write('\ninclude_once(\"en/%s\");\n' % po)
f.write('\n?>')
f.write('\n')
f.close()
# first read in file contents so we can hash what already exists
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment