summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-11-27 02:37:31 -0500
committerLoui Chang <louipc.ist@gmail.com>2008-12-17 12:58:17 -0500
commitb498a61ba2508854ad0199b377207e8ae82dde29 (patch)
treea6e0c50764ace824b8903c7529ebac198b9d69dd
parent25e9bb16984072899f9c921d17f7d6c9f1311732 (diff)
downloadaurweb-b498a61ba2508854ad0199b377207e8ae82dde29.tar.xz
genpopo: Stop printing trailing php tag.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
-rwxr-xr-xweb/utils/genpopo7
1 files changed, 3 insertions, 4 deletions
diff --git a/web/utils/genpopo b/web/utils/genpopo
index 67c0228..a2a3ac4 100755
--- a/web/utils/genpopo
+++ b/web/utils/genpopo
@@ -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