Header translation

Phoca PDF - creating PDF documents in Joomla! CMS
gulp
Phoca Member
Phoca Member
Posts: 33
Joined: 09 Oct 2012, 12:45

Header translation

Post 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:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Header translation

Post 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:
If you find Phoca extensions useful, please support the project
gulp
Phoca Member
Phoca Member
Posts: 33
Joined: 09 Oct 2012, 12:45

Re: Header translation

Post 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...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Header translation

Post 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
If you find Phoca extensions useful, please support the project
gulp
Phoca Member
Phoca Member
Posts: 33
Joined: 09 Oct 2012, 12:45

Re: Header translation

Post by gulp »

Ok thank you, I'll dig in and if find a solution I'll post it here !!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Header translation

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply