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

Change text on download button

Started by webfoleo, 26.10.2016 12:46:07

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

webfoleo

Hi there,

Does anybody know how to change the text on the download button to read "download pdf" please. I can't find which file in the backend where this is set.



Thank you for your help :)
Roger
  •  

ColinM

#1
Hi
It is in the Translation file. For the uk this is the site file en-GB.com_jdownloads.ini which is in dir /language/en-GB/
You need to search for COM_JDOWNLOADS_LINKTEXT_DOWNLOAD_URL
This currently reads
COM_JDOWNLOADS_LINKTEXT_DOWNLOAD_URL="Download"
so you would edit it to
COM_JDOWNLOADS_LINKTEXT_DOWNLOAD_URL="Download pdf"

It will of course apply to every download button, and every time you update jD you may need to edit it again.

Is it really worth while when you could alter the layout to show as illustrated in the attached pic?

Colin

[gelöscht durch Administrator]
Colin M
  •  

Lena

Hi,

you could also do an "override" (Languages -> Overrides)

Search for COM_JDOWNLOADS_LINKTEXT_DOWNLOAD_URL and change "Download" to "Download pdf". This won't change after an update.

But a picture looks really nice, too.

Lena
  •  

ColinM

Lena
Yes overrides are good.
But if the language file changes with extra content for new features what happens then?
Colin
Colin M
  •  

Lena

Colin,

I find it very useful and practical to use overrides (Template and Language) therefor I'm quite interested in your question about what happens with extra content and features, but I'm not sure I understand it correctly.

The changed key in the override stays the same in the language files or does it not? I'm mean it doesn't have to. Than there is a problem because a new key needs to be generated. That I understand. Same for new keys with "download". Is this what you meant with your question?
I'll have to keep an eye on that  ;)
  •  

ColinM

Lena,
You are right, the override mechanism for languages applies to individual constants.  So using the Languages override  will work and one does not have to worry about other changes.  I found following useful
https://docs.joomla.org/J3.x:Language_Overrides_in_Joomla

Colin
Colin M
  •