1. Other Modules
  2. Tuesday, 05 January 2016
I've tried to change submit and result button for non-english language but failed. I even changed en-GB.mod_sp_poll.ini in mod_sp_poll/language folder to check if it will change but nothing.
How can i change the Submit and Result button name value?
Thanks
Attachments (1)
Responses (6)
hi, yes you're right - it must be changed inside module code
  1. more than a month ago
  2. Other Modules
  3. # 1
hi, yes you're right - it must be changed inside module code
  1. more than a month ago
  2. Other Modules
  3. # 2
OK, i forgot to to share the solution.

1. solution

Go to extensions, languages, overrides. Select language filter (site), and click on new. Enter variable MOD_SP_POLL_BUTTON_SUBMIT (for submit button), and button text bellow. Repeat those steps for MOD_SP_POLL_BUTTON_RESULT - results button

2. solution

Go to public_html/modules/mod_sp_poll/tmpl/default.php - line 27. Replace whole MOD_SP_POLL_BUTTON_SUBMIT string with desired button text. However, by doing this you eliminate sp polls button text change on multilanguage sites, and if there is an update to sp polls it will override this
  1. more than a month ago
  2. Other Modules
  3. # 3
I have good news,
module has been updated.

So now MOD_SP_POLL_BUTTON_SUBMIT="Submit"
MOD_SP_POLL_BUTTON_RESULT="Result"
are inside language file : language\en-GB.mod_sp_poll.ini
so you do not have to edit files.
  1. more than a month ago
  2. Other Modules
  3. # 4
Hi, what would be the variable key to change "Votes" in poll results?
  1. more than a month ago
  2. Other Modules
  3. # 5
Just check language file from module and component:
COM_SPPOLLS_VOTES="Votes"
COM_SPPOLLS_VOTE="Vote"
MOD_SP_POLL_ALREADY_VOTED="You already voted!"

---
You can use Joomla Language Override as well...
Attachments (1)
  1. more than a month ago
  2. Other Modules
  3. # 6


There are no replies made for this post yet.
Be one of the first to reply to this post!


This forum is archived

This forum has been archived. Please use JoomShaper official support system.