jDownloadsownloads.com


Author Topic: Caption fields title "Information" in different languages  (Read 389 times)

0 Members and 1 Guest are viewing this topic.

Offline HerKle

  • Newbie
  • *
  • Posts: 25
Hi,
in the layouts for downloads (list) and download (single item) I find the header for the information table like this:
Code: [Select]
<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
Code: [Select]
<div class="jd_fields_caption">{caption_information}</div> and put a new line into the respective default.php of downloads directory:
Code: [Select]
// 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:
Code: [Select]
// 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
« Last Edit: 25.09.2018 00:39:53 by HerKle »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.415
    • jDownloads.com
Re: Caption fields title "Information" in different languages
« Reply #1 on: 31.10.2018 11:23:22 »
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!