jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: Jean-Pierre on 01.11.2015 14:45:07

Title: jDownloads + Falang
Post by: Jean-Pierre on 01.11.2015 14:45:07
Hello,

I use the Falang extension to manage the translations of jDownload categories and download descriptions. The two products work perfectly together and I can only recommend Falang for multilingual sites.

There is however one jDownloads table where no XML file for Falang seems to exist: jdownload_licences. I wrote the following XML file:

<?xml version="1.0" ?>
<falang type="contentelement">
<name>jDownloads Licenses</name>
<author></author>
<copyright></copyright>
<version>1.0</version>
<description>Definition for the jDownloads component (series 2.5/3.2+) - Licenses</description>
<reference>
    <table name="jdownloads_licenses">
        <field type="referenceid" name="id" translate="0">ID</field>
        <field type="titletext" name="title" translate="1">Title</field>
        <field type="text" name="alias" translate="1">Alias</field>
        <field type="htmltext" name="description" translate="1">Description</field>
    </table>
</reference>
</falang>

The translation can be done and is saved, but it does not show up in the frontend, only the default language.

Thank you for your help
Jean-Pierre
(jdownloads3.2.39)
Title: Re: jDownloads + Falang
Post by: Arno on 01.11.2015 23:17:25
Hi,
i must test this. Give me a day...
Title: Re: jDownloads + Falang
Post by: Jean-Pierre on 02.11.2015 19:03:09
Hi,

The author of Falang identified and solved the problem :)

Line 165 of file com_jdownloads/models/summary.php, reading
$query->select('l.title AS license_title, l.url AS license_url, l.description AS license_text');
has to be replaced by
$query->select('l.title AS license_title, l.url AS license_url, l.description AS license_text, l.id as lid'); 

Jean-Pierre
Title: Re: jDownloads + Falang
Post by: Arno on 02.11.2015 23:32:08
Hi Jean-Pierre,
many thanks for this info.
But this line exist also in some other models. So i think we should change also this.