Page 1 of 1

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

Posted: 21 May 2018, 19:54
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!

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

Posted: 25 May 2018, 15:21
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

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

Posted: 29 May 2018, 17:47
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.

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

Posted: 30 May 2018, 12:15
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

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

Posted: 31 May 2018, 13:53
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?

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

Posted: 31 May 2018, 13:57
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

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

Posted: 31 May 2018, 17:17
by buxster07
Thank you so much, Jan!!! I was able to find that file and I changed it as specified. It worked wonderfully!

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

Posted: 02 Jun 2018, 11:25
by Jan
Ok, great to hear it.

Jan