joomfish problem with licences

Phoca Download - download manager
szablac
Phoca Member
Phoca Member
Posts: 19
Joined: 22 Feb 2009, 00:10
Location: Hungary
Contact:

joomfish problem with licences

Post by szablac »

Hi Jan,
I can translate licences with Joomfish component, but it has no use.
When someone downloads a file from my site, the original text of the licence can be read instead of the translated ones because you select it directly from #__phocadownload_licences table.
Is there any solution to show the tranlations in the textbox of lincence?
szablac
Phoca Member
Phoca Member
Posts: 19
Joined: 22 Feb 2009, 00:10
Location: Hungary
Contact:

Re: joomfish problem with licences

Post by szablac »

Ok, i figured out the solution:
The field #__phocadownload_licenses.id must be selected in the function _getDocumentQuery of class PhocaDownloadModelFile in order to joomfish find the translation of the content.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: joomfish problem with licences

Post by Jan »

Hi, please let me know where exactly did you do the changes, so I can look at it.

Jan
If you find Phoca extensions useful, please support the project
szablac
Phoca Member
Phoca Member
Posts: 19
Joined: 22 Feb 2009, 00:10
Location: Hungary
Contact:

Re: joomfish problem with licences

Post by szablac »

I changed line 87 in file.php (<site root>\components\com_phocadownload\models\) from this:

$query = ' SELECT c.*, cc.id AS categoryid, cc.title AS categorytitle, cc.alias AS categoryalias, lc.title AS licensetitle, lc.description AS licensetext'

to this:

$query = ' SELECT c.*, cc.id AS categoryid, cc.title AS categorytitle, cc.alias AS categoryalias, lc.title AS licensetitle, lc.description AS licensetext, lc.id AS licenseid'
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: joomfish problem with licences

Post by Jan »

Thank you, I will change it for the next version.

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