jDownloads supports Multilingual Modules. In this article it is assummed you have already set up your site for multilingual Categories and Downloads.
For more information see Article on Multilingual Support (opens in a separate window/tab)
In this article we will be using the jDownloads Top module as an example. This module lists those Downloads that have been downloaded the most number of times.
Before starting it is worthwhile creating all the jDownloads 'menu' items in each language menu that you intend to make available to your users.
Note: In order to display the Top Module at least one file has to have been downloaded. This applies to each language.
Important You will still need the default jD menu item 'List All Categories' in the regular Main menu. This may be a 'hidden' menu item.
Create Multilingual Module
Next, as indicated on the second image opposite, click on .
As expected, this shows the list of all the site modules.
Now click on the jDownloads Top module.
Before editing anything click on the button as indicated opposite. This saved copy will become one of the multilingual Top modules.
There are some essential parameters that must be setup.
There are also other parameters, which are refered to here as 'optional parameters'. These 'optional' parameters define what extra information is shown such as 'Number of Downloads', 'Show creation date', 'Text Before' and so on. Some optional parameters set styling.
Later we will make a copy of this first multilingual Top module for other languages. Only the Essential parameters and the 'Menu Assignment' settings will need to be adjusted.
Of course the 'optional parameters' may be setup for each module individually if preferred.
Essential Module Tab settings
The 'optional' parameters are inicated with green arrows.
1. Change the Title field to something appropriate. In this example the '2' has been replaced by 'DE' to denote the language is set to German. If we were setting up say a French Language Module then a sutable title would perhaps be 'Module supérieur'.
2. Select the target position in your template.
3. Change the Status to Published.
4. And most importantly, select the target Language which in this case is German.
The Text Before and Text After options, which appear at the start and end of the list, both support the language selection as illustrated below.
When later setting up another Top Module for a different language it is simpler to make a copy of the first language module and edit that copy as appropriate.
The test example used in writing this article was set for four languages: English, French, German and Arabic. The Arabic is used to check the "right to left" CSS.
Menu Assignment Tab
First make sure that you select the option 'Only on the pages selected'. In this example, which is setting the English Language version, then ensure that only the EN-GB menu items, as indicated with the relevant flag , are selected.
Ensure those for any other language are NOT selected.
BUT Always set the List All jD Cats in the Main Menu.
When Done then do a Save & Close after adjusting any of the other options in the Module tab.
Note: If you subsequently create a new menu item then the module will not show on that page until you include it in the relevant Menu in the Menu Assignment tab
Further Language Modules
The two images opposite illustrate using the 'Text before' and Text After' options with the Joomla language selectors.
Also shown are text for number of times downloaded (Hits), Date and Category. Also the category has been set as a link.
The German language TOP module has also been set to show as a numerical listing and to use a limited number of characters in the Download name.
ColinM March 2023 modified June 2023