summaryrefslogtreecommitdiffstats
path: root/web/utils/translation_tool
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-11-04 03:52:07 +0100
committerLoui Chang <louipc.ist@gmail.com>2008-11-04 03:52:07 +0100
commita6147ab5ab297728adefdb97aaeedc93114b896d (patch)
tree49b508439ab2aa0cf4bd039d3b2d2d53e8860df0 /web/utils/translation_tool
parentc85dfacc747387b9be6c53b4518ac680b505e0f7 (diff)
parent100451a9665cb387eeae2cb06cc22870cfd57c82 (diff)
downloadaur-a6147ab5ab297728adefdb97aaeedc93114b896d.tar.gz
aur-a6147ab5ab297728adefdb97aaeedc93114b896d.tar.xz
Merge branch 'testing'
Conflicts: web/html/pkgsubmit.php Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/utils/translation_tool')
-rwxr-xr-xweb/utils/translation_tool9
1 files changed, 4 insertions, 5 deletions
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.