I’ve got the same problem.
here is my workaround that’s works perfect for me:
- Dashboard –> Polls –> Poll Templates
- change phrases in the HTML-code to your language
Then:
- Open plugins/wp-polls/wp-polls.php on the server. you’ll find the popup-error-messages here…
- act carefully on the server! make a copy of the file
- change the phrases – i.e.:
‘text_valid’ => __(‘Please choose a valid poll answer.’, ‘wp-polls’),
to
‘text_valid’ => __(‘Bitte treffen Sie Ihre Wahl!’, ‘wp-polls’)
<i>that’s german ;-)</i>
That’s it.
I have found the problem.
The main problem is that this plugin relies on options. If the plugin was initialized with one language it cannot be switched to another because all options that include specific words were inserted in database. So if you are changing the language after installation you have to uninstall the plugin (or delete plugin options from option table) and activate plugin again.
I also added next changes (bold):
function widget_polls_init() {
register_widget(‘WP_Widget_Polls’);
}
add_action(‘widgets_init’, ‘widget_polls_init’);
load_plugin_textdomain( ‘WP_Widget_Polls’, null, basename( dirname( __FILE__ ) ) );
and i have changed:
function polls_textdomain() {
load_plugin_textdomain(‘wp-polls’, false, basename(dirname(__FILE__)));
}
add_action(‘plugins_loaded‘, ‘polls_textdomain’);
and now it works.
Also you can replace in wp-polls.php every appearance of get_option(option_name) with content of add__option(option_name,content)
which you can find in function create_poll_table().
After that you can change language without uninstall because the plugin won’t be dependable on options anymore.