WPML
Status
Resolved by author
Resolved in
Quiz And Survey Master 8.1.15
Related plugin/theme
Quiz And Survey Master
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.

All known issues →