Translation process issues
When executing the translation process as defined in TRANSLATING.md I encounter the following warnings/errors:
- For the LaTeX files:
(env) boris@debian:scripts$ ./latexUpdate2po.sh
latexUpdate2po.sh
TBD: Description: tex -> pot -> po -> (when 100% translated) tex
Change latexPO4a.cfg: more languages, more LaTex files
By Silvério Santos for the OW2 Good Governance Initiative.
cmd=[po4a_langs]; de / fr
cmd=[po4a_paths]; ../resources/pot_files/resources/$master.pot / de:../translations/de/po_files/resources/$master.po fr:../translations/fr/po_files/resources/$master.po
cmd=[type: latex]; ../resources/latex/customisations.tex / de:../translations/de/resources/latex/customisations.tex fr:../translations/fr/resources/latex/customisations.tex
Options for ../resources/latex/customisations.tex while generating pot:
Split mode, creating a temporary POT:po4a::transtractor::process: Read document /home/boris/Projects/ow2_ggi/handbook/scripts/../resources/latex/customisations.tex
po4a::transtractor::process: Call parse()
po4a::transtractor::process: Done parse()
(4 entries)
msggrep -N "../resources/latex/customisations.tex" -o /tmp/po4ap_HC.pot /tmp/po4a-temp-pot-lLwS.pot
msggrep did not create '/tmp/po4ap_HC.pot'. Used command:
msggrep -N "../resources/latex/customisations.tex" -o /tmp/po4ap_HC.pot /tmp/po4a-temp-pot-lLwS.pot
Please report that bug, along the information allowing to reproduce it.
- For the Scorecard:
(env) boris@debian:scripts$ ./po2scorecard.sh
po2scorecard.sh
Converts po to xliff files (temporarily) and combines that with the
original ODT files to translated (permanent) ODT and PDF files.
Usage: cd into the scripts folder and run this command without parameters.
By Silvério Santos for the OW2 Good Governance Initiative.
Languages found:
fr
de
File: Scorecard-Template-v0
Language: fr
po2xliff: WARNING: Error processing: input ../translations/fr/po_files/resources/Scorecard-Template-v0.po, output /Scorecard-Template-v0.xlf, template None: [Errno 13] Permission denied: '/Scorecard-Template-v0.xlf'
xliff2odf: WARNING: Error processing: input /Scorecard-Template-v0.xlf, output ../translations/fr/resources/latex/Scorecard-Template-v0.odt, template ../../resources/scorecards/Scorecard-Template-v0.odt: [Errno 2] No such file or directory: '/Scorecard-Template-v0.xlf'
Error: source file could not be loaded
Language: de
po2xliff: WARNING: Error processing: input ../translations/de/po_files/resources/Scorecard-Template-v0.po, output /Scorecard-Template-v0.xlf, template None: [Errno 13] Permission denied: '/Scorecard-Template-v0.xlf'
xliff2odf: WARNING: Error processing: input /Scorecard-Template-v0.xlf, output ../translations/de/resources/latex/Scorecard-Template-v0.odt, template ../../resources/scorecards/Scorecard-Template-v0.odt: [Errno 2] No such file or directory: '/Scorecard-Template-v0.xlf'
convert /home/boris/Projects/ow2_ggi/handbook/translations/de/resources/latex/Scorecard-Template-v0.odt -> /home/boris/Projects/ow2_ggi/handbook/translations/de/resources/latex/Scorecard-Template-v0.pdf using filter : writer_pdf_Export
Overwriting: /home/boris/Projects/ow2_ggi/handbook/translations/de/resources/latex/Scorecard-Template-v0.pdf
Done.
(env) boris@debian:scripts$
The latter seems to be the consequence of a missing env var, TEMP
. When setting it (/tmp/) it passes but then stumbles upon a missing scorecard.odt file (which is there, as far as I can see). I have the feeling that the temp directory should be set in the current hierarchy.