Add translator-credit info to tutorials footer (SVG and HTML)
Originally discussed here: !105 (comment 263968253)
It would be nice if we can extract translator-credit
s from PO files and include them to tutorial footers.
I found how can we do this: xml2po adds these infos automatically to the bookinfo
|articleinfo
. See the example and attached proof of concept code:
<bookinfo>
<author>
<firstname>Gellért</firstname>
<surname>Gyuris</surname>
</author>
<date>December 24, 2019</date>
</bookinfo>
msgid "translator-credits"
msgstr ""
"Gyuris Gellért <gellert.gyuris@ujevangelizacio.hu>, 2019.\n"
"Gellért Gyuris <bubu@ujevangelizacio.hu>, 2019."
$ xml2po -p hu.po -o docbook.hu.xml docbook.xml
<bookinfo>
<author>
<firstname>Gellért</firstname>
<surname>Gyuris</surname>
</author>
<date>2019. december 24.</date>
<copyright>
<year>2019.</year>
<holder>Gyuris Gellért (gellert.gyuris@ujevangelizacio.hu)</holder>
</copyright>
<copyright>
<year>2019.</year>
<holder>Gellért Gyuris (bubu@ujevangelizacio.hu)</holder>
</copyright>
</bookinfo>