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

Caption fields title "Information" in different languages

Started by HerKle, 24.09.2018 19:07:11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HerKle

Hi,
in the layouts for downloads (list) and download (single item) I find the header for the information table like this:<div class="jd_fields_caption">Information</div>.
This works fine in English, French and German, but in other languages "Information" is spelt differently, eg. in Finnish: Informaatio. So I replaced that line by <div class="jd_fields_caption">{caption_information}</div> and put a new line into the respective default.php of downloads directory: // Fields Caption "Information"
$html_file = str_replace('{caption_information}', JTEXT::_('COM_JDOWNLOADS_FIELDS_CAPTION'), $html_file);
In default.php of download directory I added the following line: // Fields Caption "Information"
$body = str_replace('{caption_information}', JTEXT::_('COM_JDOWNLOADS_FIELDS_CAPTION'), $body);




In Joomla's language overrides I entered the key COM_JDOWNLOADS_FIELDS_CAPTION and gave it its correct content in each language used. Maybe you can take up that idea for future releases.

Regards, Herbert
Kind regards, Herbert
  •  

Arno

Hi Herbert,
Thanks for the hint. I will check and fix it in the version 3.9.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •