splitbrain / dokuwiki-plugin-dw2pdf

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

support for translation-plugin #318

Open frank-w opened 6 years ago

frank-w commented 6 years ago

Hi,

please use language selected in translation-Plugin for Link-Text (export_ns).

regards Frank

Klap-in commented 6 years ago

Request: please one issue per issue, thanks!

About language selection: For example current link is "Export namespace "test:" to file pdftitle.pdf"

Do you mean that at page "fr:ns1:page" you see the link: "Exporter la catégorie « test: » dans le fichier pdftitle.pdf."

At page "en:ns1:page" you see the link: "Export namespace "test:" to file pdftitle.pdf."

etc.

Or do you mean that the namespace of the export should determine the title with languagecode used in the namespace that should be exported?

So at page "ns1:page" you see the link: "Exporter la catégorie « fr:test: » dans le fichier pdftitle.pdf."

At page "ns1:page" you see the link: "Export namespace "en:test:" to file pdftitle.pdf."

If this is not corresponding with your idea, could you make an example which shows the idea?

frank-w commented 6 years ago

Yes, i mean the namespace-export-link should be in the language of that namespace. Currently the link-title is always the main-language of the wiki. The pdf itself uses the right language as i see

Klap-in commented 6 years ago

aha, so if you make somewhere a link to export "fr:test", then you expect a french url? e.g. "Exporter la catégorie « fr:test: » dans le fichier pdftitle.pdf."

Do you also expect that this url is french if it is referred from a page in for example a Swedish namespace?

frank-w commented 6 years ago

Right,

here my example (english namespace in german wiki). Here i changed lang/de/lang.php to get in both namespaces a description that is nearly understandable by both languages.

http://www.fw-web.de/dokuwiki/doku.php?id=en/bpi-r2/start

frank-w commented 6 years ago

The link should be in language of the page where it is located...the target is shown in link....

frank-w commented 6 years ago

Is clear what i mean? Have you take a look in my wiki?

Klap-in commented 1 year ago

Also related to #438