mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
genpopo: Stop printing trailing php tag.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
parent
25e9bb1698
commit
b498a61ba2
1 changed files with 3 additions and 4 deletions
|
@ -140,7 +140,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("en/"+po,'w')
|
f = open("en/"+po,'w')
|
||||||
|
@ -150,7 +150,6 @@ if force:
|
||||||
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.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
|
||||||
|
@ -184,13 +183,13 @@ else:
|
||||||
f = open(po,'w')
|
f = open(po,'w')
|
||||||
f.write("".join(contents))
|
f.write("".join(contents))
|
||||||
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()
|
||||||
else:
|
else:
|
||||||
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()
|
||||||
|
|
||||||
# first read in file contents so we can hash what already exists
|
# first read in file contents so we can hash what already exists
|
||||||
|
|
Loading…
Add table
Reference in a new issue