mat_jar
Forum Replies Created
-
I’m glad I could help, I had the same problems with YOP. I think you can treat the other strings in a similar way – by adding icl_translate() function where they are created.
Cheers!
Hi,
I added an if statment:if( function_exists( 'icl_translate' ) ) { $question->question = icl_translate( 'yop_poll', $question->ID . '_question', $question->question ); }into foreach loop in ‘public function question_replace_callback( $m )’ in poll_model.php (line 304)
It allowed me to translate question.
Forum: Plugins
In reply to: [YOP Poll] BUG: Vote button shows no text. Only a small squareI changed the line 1347 in poll_model.php (under “Translate labels” comment) from the original:
$this->vote_button_label = icl_translate( 'yop_poll', $poll_details->ID . '_vote_button_label', empty($this->vote_button_label )?$general_options['vote_button_label']:$this->vote_button_labels );to:
$this->vote_button_label = icl_translate( 'yop_poll', $poll_details->ID . '_vote_button_label', $general_options['vote_button_label']);It solved the problem and allowed to translate the button label.