Skip to content
Snippets Groups Projects
Commit 88d57836 authored by Frank Steinberg's avatar Frank Steinberg
Browse files

Minor.

parent ec972309
No related branches found
No related tags found
No related merge requests found
......@@ -114,14 +114,18 @@ if os.path.isfile(translatedfilename):
log("updating translation file %s/%s.xml based on snippet" % (LANG, id))
cmd = "xsltproc --stringparam snippet %s %s/xsl/bjcp-2015-styleguide-merge.xsl %s > %s.tmp ; mv %s.tmp %s" % (snippetfilename, REPODIR, translatedfilename, translatedfilename, translatedfilename, translatedfilename)
os.system(cmd)
log("updating all files (may take a minute)"
cmd = "make -C %s && cp %s/bjcp-2015-styleguide-de-edit.html %s/bjcp-2015-styleguide-de-edit.html" % (REPODIR, REPODIR, DIR)
os.system(cmd)
log("done")
elif os.path.isfile(origfilename):
log("creating new translation file %s/%s.xml from orig/%s.xml and snippet" % (LANG, id, id))
cmd = "xsltproc --stringparam snippet %s %s/xsl/bjcp-2015-styleguide-merge.xsl %s > %s" % (snippetfilename, REPODIR, origfilename, translatedfilename)
os.system(cmd)
log("updating all files (may take a minute)"
cmd = "make -C %s && cp %s/bjcp-2015-styleguide-de-edit.html %s/bjcp-2015-styleguide-de-edit.html" % (REPODIR, REPODIR, DIR)
os.system(cmd)
log("done")
else:
log("neither orig file %s nor translated file %s for id %s exists" % (origfilename, translatedfilename, id))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment