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!
Is there a way to change the text of the front end button?
- buxster07
- Phoca Member
- Posts: 24
- Joined: 21 May 2018, 16:44
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Is there a way to change the text of the front end button?
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
PLG_EDITORS-XTD_PHOCADOWNLOAD_FILE
Jan
If you find Phoca extensions useful, please support the project
- buxster07
- Phoca Member
- Posts: 24
- Joined: 21 May 2018, 16:44
Re: Is there a way to change the text of the front end button?
Hello Jan,
Would you recall what file to edit? I am unable to find that value or constant in the language translation overrides.
Would you recall what file to edit? I am unable to find that value or constant in the language translation overrides.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Is there a way to change the text of the front end button?
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
Jan
If you find Phoca extensions useful, please support the project
- buxster07
- Phoca Member
- Posts: 24
- Joined: 21 May 2018, 16:44
Re: Is there a way to change the text of the front end button?
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?
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?
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Is there a way to change the text of the front end button?
Did you check both the folders: administration/language/en-GB and language/en-GB
Did you install the button Plugin for Phoca Download?
Jan
Did you install the button Plugin for Phoca Download?
Jan
If you find Phoca extensions useful, please support the project
- buxster07
- Phoca Member
- Posts: 24
- Joined: 21 May 2018, 16:44
Re: Is there a way to change the text of the front end button?
Thank you so much, Jan!!! I was able to find that file and I changed it as specified. It worked wonderfully!
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Is there a way to change the text of the front end button?
Ok, great to hear it.
Jan
Jan
If you find Phoca extensions useful, please support the project