Skip Navigation

Resolved by author

Resolved in: Quiz And Survey Master 8.1.15

Topic Tags: Compatibility

Overview of the issue

When using Quiz And Survey Masterplugin, you will notice that despite translating the Retake Quiz button in the WPML String Translation module, the translated button does not appear correctly in the quiz summary after being submitted.

Workaround

Please, make sure of having a full backup of your site before proceeding.

  • Open …/wp-content/plugins/quiz-master-next/php/classes/class-qmn-quiz-manager.php file.
  • Look for line 1772.
  • Replace this code:
    				$result_display .= '<input type="submit" value="' . apply_filters( 'qsm_retake_quiz_text', $qmn_quiz_options->retake_quiz_button_text ) . '" name="qsm_retake_button" class="qsm-btn qsm_retake_button qmn_btn" id="qsm_retake_button" />';
    
    
  • With:
    				$result_display .= '<input type="submit" value="' . esc_attr($mlwQuizMasterNext->pluginHelper->qsm_language_support($qmn_quiz_options->retake_quiz_button_text, "quiz_retake_quiz_button_text-{$qmn_quiz_options->quiz_id}")) . '" name="qsm_retake_button" class="qsm-btn qsm_retake_button qmn_btn" id="qsm_retake_button" />';
    

Note: keep in mind that you may need to update the Retake button label and its translation in order to make these changes visibles.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>