summaryrefslogtreecommitdiffstats
path: root/web/utils
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-07-23 00:16:23 +0200
committerCallan Barrett <wizzomafizzo@gmail.com>2008-07-28 10:55:35 +0200
commit85ce072f031d1c5352e18ca19deac93c6202127e (patch)
tree38bd15b96fbc8ec20d8cf78c865e0676b273c857 /web/utils
parentbb2204f0fde89d50a7c2c0554314d30c8289918b (diff)
downloadaur-85ce072f031d1c5352e18ca19deac93c6202127e.tar.gz
aur-85ce072f031d1c5352e18ca19deac93c6202127e.tar.xz
Don't add closing PHP tag to translation files.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/utils')
-rwxr-xr-xweb/utils/genpopo2
-rwxr-xr-xweb/utils/translation_tool9
2 files changed, 5 insertions, 6 deletions
diff --git a/web/utils/genpopo b/web/utils/genpopo
index bfe3492e..67c02284 100755
--- a/web/utils/genpopo
+++ b/web/utils/genpopo
@@ -232,7 +232,7 @@ else:
if term not in existing_terms:
f.write("\n");
f.write('$_t["en"]["%s"] = "%s";\n' % (term, term))
- f.write("\n?>");
+ f.write("\n");
f.close()
# Print out warnings for unused and little-used common entries.
diff --git a/web/utils/translation_tool b/web/utils/translation_tool
index ae9ae1de..6967139a 100755
--- a/web/utils/translation_tool
+++ b/web/utils/translation_tool
@@ -172,7 +172,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(trans_dir+"/"+po,'w')
@@ -183,7 +183,6 @@ if force:
trans = raw_input(term+" = ")
f.write('$_t["%s"]["%s"] = "%s";\n' % (trans_abbrv, term, trans))
f.write("\n");
- f.write("?>");
f.close()
else:
# need to leave existing file intact, and only append on terms that are new
@@ -216,13 +215,13 @@ else:
f = open(po,'w')
f.write("".join(contents))
f.write('\ninclude_once(\"%s/%s\");\n' % (trans_abbrv, po))
- f.write("\n?>");
+ f.write("\n");
f.close()
else:
f = open(po,'w')
f.write(INC_HEADER)
f.write('\ninclude_once(\"%s/%s\");\n' % (trans_abbrv, po))
- f.write('\n?>')
+ f.write('\n')
f.close()
# first read in file contents so we can hash what already exists
#
@@ -264,7 +263,7 @@ else:
f.write("\n");
trans = raw_input(term+" = ")
f.write('$_t["%s"]["%s"] = "%s";\n' % (trans_abbrv, term, trans))
- f.write("\n?>");
+ f.write("\n");
f.close()
# Print out warnings for unused and little-used common entries.