splitbrain / dokuwiki-plugin-dw2pdf

A fork of Luigi Micco's PDF export plugin for DokuWiki
http://www.dokuwiki.org/plugin:dw2pdf
55 stars 68 forks source link

Add support for language specific PDF templates #438

Open arjay54 opened 3 years ago

arjay54 commented 3 years ago

We are using DokuWiki and Bookcreator plugin for our documentation. We also have set up the Translation plugin with separate namespaces according to ISO language codes, i.e. :en :de :fr :es :pt

We want to include some language-specific information in the html Templates:

header.html – Header for all pages
header_odd.html – Header for odd pages
...
cover.html – If exists, added once before first page
back.html – If exists, added once after last page

Would it be possible to create an option that allows to include the namespace in the template? E.g.

header_de.html header_odd_de.html ...

Looking forward if anyone has a solution.

Juergen-aus-Zuendorf commented 3 years ago

Perhaps you can use the parameter &tpl={template for specific language}. The disadvantage, however, is that you have to copy everything into each template folder, which is language neutral.