Page 1 of 1

Header translation

Posted: 20 Apr 2016, 16:29
by gulp
Hi,
is there a way to put different content in pdf header based on different language ?
I would like the header translated in each language of the site.
Could it be a solution to create language overrides of a new text, say: "my header"
and then recall it by jtext ?
Would it plugin-parsed if I put this in an article or module and the load it by loadmodule/loadposition into the pdf-header text editor ?

This is a little bit complex to explain, but I hope it's clear :wink:

Re: Header translation

Posted: 25 Apr 2016, 01:21
by Jan
Hi, no, there is no such option, I don't know if this can be possible per some external extension like joom!fish is, or another - which creates different instances of the description (in this case header description) but as default there is no option to do for more language.

The idea how to do it simple, can be displaying translation string and langauge feature to the header.

- detect the language
- load it and translate the language string :idea:

Re: Header translation

Posted: 27 Apr 2016, 18:03
by gulp
I use falang,
it can translate everything in Joomla because it adds a system plugin the replaces the content with the translation.
There is a way to create new elements by adding an xml (like a record track) then you will be able to translate any new kind of content.
I don't know about the header or footer of your pdfs...

Re: Header translation

Posted: 28 Apr 2016, 17:02
by Jan
Hi, they are stored in plugin (content plugin)

plugins/content/plg_phocapdf_content/content.xml

(header_data, footer_data) so if you are able to translate plugins, then there should not be any problem with the plugin :idea:

Jan

Re: Header translation

Posted: 02 May 2016, 10:13
by gulp
Ok thank you, I'll dig in and if find a solution I'll post it here !!

Re: Header translation

Posted: 08 May 2016, 16:15
by Jan
Ok