I'm using the Voting API module in conjunction with the Advanced Poll module.
When the poll is displayed the action button reads "Vote". This tends to go against the enduser usability standards styles sheets. For the life of me I can not locate where this word "Vote" is being generated and would like to change it to read as "Submit". Anyone know which file contains this?

Thank you.

Comments

eaton’s picture

Project: Voting API » Advanced Poll

The UI for that module is defined entirely by Advanced Poll module, and VotingAPI doesn't affect the text of its UI buttons. :)

sohopub’s picture

That's what I figured but I still don't see that line. I did find

$header[] = array('data' => t('<b>Vote</b>'), '');

as well as

      // Add javascript for posting voting forms with Ajax
      drupal_add_js(array('advPoll' => array('vote' => t('<b>Vote</b>'))), 'setting');
      drupal_add_js(drupal_get_path('module', 'advpoll') .'/advpoll-vote.js', 'module');
      drupal_add_js(drupal_get_path('module', 'advpoll') .'/jquery.form.js', 'module');
      $addjs = FALSE;
    }

But neither stand out as the spot that would make the submit button read as 'Submit' instead of 'Vote'.

What are your thoughts?
Thank you!

sohopub’s picture

please disregard the tags. I tried to make the 'Vote' stand out in this post. the 's aren't really in the code

anders.fajerson’s picture

You can use the Localisation module included with core (create you own language and translate the strings you want to change).

You could also change this by using hook_form_alter in an own custom module, please see the form API documentation for this.

anders.fajerson’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)