jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: webfoleo on 26.10.2016 12:46:07

Title: Change text on download button
Post by: webfoleo on 26.10.2016 12:46:07
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
Title: Re: Change text on download button
Post by: ColinM on 26.10.2016 15:00:05
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]
Title: Re: Change text on download button
Post by: Lena on 26.10.2016 15:16:31
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
Title: Re: Change text on download button
Post by: ColinM on 26.10.2016 15:38:19
Lena
Yes overrides are good.
But if the language file changes with extra content for new features what happens then?
Colin
Title: Re: Change text on download button
Post by: Lena on 26.10.2016 16:07:06
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  ;)
Title: Re: Change text on download button
Post by: ColinM on 26.10.2016 21:56:14
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