Is there a way to change the text of the front end button?

Phoca Download - download manager
User avatar
buxster07
Phoca Member
Phoca Member
Posts: 24
Joined: 21 May 2018, 16:44

Is there a way to change the text of the front end button?

Post by buxster07 »

Hello! New to the plugin.

How can change the text of the "Phoca Download File" button when writing an article in the front end? My intended users might be confused, they will be mainly uploading pdfs, and so I'd like to enter "Insert PDF" for the article publisher.

Thanks for any tips!

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Is there a way to change the text of the front end button?

Post by Jan »

Hi, you can change it directly in the code (button plugin) or in translation string (of the button plugin):
PLG_EDITORS-XTD_PHOCADOWNLOAD_FILE

Jan
If you find Phoca extensions useful, please support the project
User avatar
buxster07
Phoca Member
Phoca Member
Posts: 24
Joined: 21 May 2018, 16:44

Re: Is there a way to change the text of the front end button?

Post by buxster07 »

Hello Jan,

Would you recall what file to edit? I am unable to find that value or constant in the language translation overrides.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Is there a way to change the text of the front end button?

Post by Jan »

Hi, there is only one php file in the button plugin: phocadownload.php line: 45 but the easiest way is to change the string in language file: language\en-GB\en-GB.plg_editors-xtd_phocadownload.ini

Jan
If you find Phoca extensions useful, please support the project
User avatar
buxster07
Phoca Member
Phoca Member
Posts: 24
Joined: 21 May 2018, 16:44

Re: Is there a way to change the text of the front end button?

Post by buxster07 »

Hi Jan,
I don't have the same naming convention on mine. I do have a language\en-GB\en-GB.plg_phocadownload.ini however. Would that be the file?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Is there a way to change the text of the front end button?

Post by Jan »

Did you check both the folders: administration/language/en-GB and language/en-GB

Did you install the button Plugin for Phoca Download?

Jan
If you find Phoca extensions useful, please support the project
User avatar
buxster07
Phoca Member
Phoca Member
Posts: 24
Joined: 21 May 2018, 16:44

Re: Is there a way to change the text of the front end button?

Post by buxster07 »

Thank you so much, Jan!!! I was able to find that file and I changed it as specified. It worked wonderfully!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47870
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Is there a way to change the text of the front end button?

Post by Jan »

Ok, great to hear it.

Jan
If you find Phoca extensions useful, please support the project
Post Reply