mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Don't add closing PHP tag to translation files.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
bb2204f0fd
commit
85ce072f03
2 changed files with 5 additions and 6 deletions
|
@ -232,7 +232,7 @@ else:
|
||||||
if term not in existing_terms:
|
if term not in existing_terms:
|
||||||
f.write("\n");
|
f.write("\n");
|
||||||
f.write('$_t["en"]["%s"] = "%s";\n' % (term, term))
|
f.write('$_t["en"]["%s"] = "%s";\n' % (term, term))
|
||||||
f.write("\n?>");
|
f.write("\n");
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# Print out warnings for unused and little-used common entries.
|
# Print out warnings for unused and little-used common entries.
|
||||||
|
|
|
@ -172,7 +172,7 @@ if force:
|
||||||
f = open(po,'w')
|
f = open(po,'w')
|
||||||
f.write(INC_HEADER)
|
f.write(INC_HEADER)
|
||||||
f.write('\ninclude_once(\"en/%s\");\n' % po)
|
f.write('\ninclude_once(\"en/%s\");\n' % po)
|
||||||
f.write('\n?>')
|
f.write('\n')
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
f = open(trans_dir+"/"+po,'w')
|
f = open(trans_dir+"/"+po,'w')
|
||||||
|
@ -183,7 +183,6 @@ if force:
|
||||||
trans = raw_input(term+" = ")
|
trans = raw_input(term+" = ")
|
||||||
f.write('$_t["%s"]["%s"] = "%s";\n' % (trans_abbrv, term, trans))
|
f.write('$_t["%s"]["%s"] = "%s";\n' % (trans_abbrv, term, trans))
|
||||||
f.write("\n");
|
f.write("\n");
|
||||||
f.write("?>");
|
|
||||||
f.close()
|
f.close()
|
||||||
else:
|
else:
|
||||||
# need to leave existing file intact, and only append on terms that are new
|
# need to leave existing file intact, and only append on terms that are new
|
||||||
|
@ -216,13 +215,13 @@ else:
|
||||||
f = open(po,'w')
|
f = open(po,'w')
|
||||||
f.write("".join(contents))
|
f.write("".join(contents))
|
||||||
f.write('\ninclude_once(\"%s/%s\");\n' % (trans_abbrv, po))
|
f.write('\ninclude_once(\"%s/%s\");\n' % (trans_abbrv, po))
|
||||||
f.write("\n?>");
|
f.write("\n");
|
||||||
f.close()
|
f.close()
|
||||||
else:
|
else:
|
||||||
f = open(po,'w')
|
f = open(po,'w')
|
||||||
f.write(INC_HEADER)
|
f.write(INC_HEADER)
|
||||||
f.write('\ninclude_once(\"%s/%s\");\n' % (trans_abbrv, po))
|
f.write('\ninclude_once(\"%s/%s\");\n' % (trans_abbrv, po))
|
||||||
f.write('\n?>')
|
f.write('\n')
|
||||||
f.close()
|
f.close()
|
||||||
# first read in file contents so we can hash what already exists
|
# first read in file contents so we can hash what already exists
|
||||||
#
|
#
|
||||||
|
@ -264,7 +263,7 @@ else:
|
||||||
f.write("\n");
|
f.write("\n");
|
||||||
trans = raw_input(term+" = ")
|
trans = raw_input(term+" = ")
|
||||||
f.write('$_t["%s"]["%s"] = "%s";\n' % (trans_abbrv, term, trans))
|
f.write('$_t["%s"]["%s"] = "%s";\n' % (trans_abbrv, term, trans))
|
||||||
f.write("\n?>");
|
f.write("\n");
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# Print out warnings for unused and little-used common entries.
|
# Print out warnings for unused and little-used common entries.
|
||||||
|
|
Loading…
Add table
Reference in a new issue