News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

jDownload link issue (bug) with multi-language Joomla site

Started by Frans, 20.03.2015 22:12:57

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Frans

Hi,

Thanks for the jDownload extension, works good on Joomla version 3.3.6.

But, I have certain issue/bug, that this extension seems to be not working good with multi-language Joomla site.

FYI, I have installed ID (Indonesian) language pack for jDownloads, but still I have to add and edit the language file in ../language/.. "en-EN.com_jdownloads.ini" to "id-ID.com_jdownloads.ini" manually.

Back to the issue, my site has 2 different languages, English and Indonesian version.

I created the Download menu for the Indonesia site, eg:

http://localhost/id/media-publik/download

Menu item type: List All Categories - jDownloads

Everything works good.

Category Sample link: http://localhost/id/media-publik/download/category/2-category-sample-id


But, when I tried to create other menu for the English site, eg:

http://localhost/en/public-media/download

Menu item type: List All Categories - jDownloads

The all element links go to "http://localhost/en/media-publik/download"

Category Sample link: http://localhost/en/media-publik/download/category/3-category-sample-en

The sub directory link above contains "media-publik", which is a wrong link. The download sub directory link should goes to "public-media" like this:

Category Sample link: http://localhost/en/public-media/download/category/3-category-sample-en


# Note:

- I have tried to create new Layout (for Categories) and set each of the layout for both Indonesian and English. But, still not working.
- Each of the files has been set to its language (ID or english UK).

And also, in the Category drop down menu, it seems jDownload not filtered the language properly for the category. The category which is set to Indonesia lang, is shown on English download menu, and vice versa.

Please assist me on this. Thank you.


# Update:

- For temporary solution, to overcome the URL link problem, I created the htaccess rule for this case.

RewriteRule ^/?en/media-publik/(.*)$ /en/public-media/$1 [R,L]

For anyone who also got the same problem using jDownload in multi-language Joomla site, can use the htaccess rule above.

Still waiting respond from the developer.



Regards,
Frans
  •  

IntegraSistemi

Same problem as above... I try but I can't find where the trouble generating link is in the code...

where do you put your RewriteRule? in the htaccess on the root?
Many thanks
Roberto
  •  

Frans

@Roberto:

Yes, right.

Join/insert the rule above along with the other rules in the .htaccess file (under Joomla web root directory).

eg:
......
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
Options -Indexes

## Mod_rewrite in use.

RewriteEngine On

RewriteRule ^/?en/media-publik/(.*)$ /en/public-media/$1 [R,L]


......
  •