Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Prosenjit Barman 1 year, 5 months ago.

Assisted by: Prosenjit Barman.

Author Posts
August 11, 2023 at 11:20 am #14188037

daniel-viktorV

Hi there,

I'm using QSM wordpress pugin (hidden link) for quizes. All strings are properly translated, only one (on the button) text is not (attached image (2).png).
Even though the string is properly translated (attached image (3).png).

You can test the problem here: hidden link

Whar could be the problem?

Thanks in advance!

image (3).png
image (2).png
August 11, 2023 at 1:11 pm #14188799

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support. I will try my best to assist you in this matter.

I understood the issue you're having. Would you please check if that specific text is listed in the Admin screen or not?

Please go to "WPML > String Translation" and scroll down to the "Translate texts in admin screens »" section. Search for the button text and if you found that there, register that string for translation. You'll be able to translate the text after that from the String Translation section.

Check this documentation for more information: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#strings-arent-selected-for-translation

Let me know if that helps or if you need further assistance. I will be happy to help.

Best Regards,
Prosenjit

August 14, 2023 at 2:19 pm #14197743

daniel-viktorV

Hi there,

No, this string is not present in the location you have specified. The problem is that it can be found in "WPML > String Translation", and here I translated it (like all the other strings).
However, the frontend does not show the translation for this string (all others do).

August 16, 2023 at 5:01 am #14205897

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
I hope you're doing well.

It is possible that the text that you've translated is related to the backend which is why, the translation is not showing in the Frontend. However, a closer inspection will definitely help in understanding the root cause of the issue. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please make a backup of site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

August 24, 2023 at 8:52 am #14282739

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for sharing the access information.

While checking, I found that the WPML and String translation plugin hasn't been updated to their latest version. Would you please update the plugins to their latest version and check if that helps to solve the issue?

After updating the plugin, kindly make sure that the button labels and other things are translated as per the instructions mentioned here: hidden link

Let me know the update. I will be happy to help if you need further assistance in this case.

Best regards,
Prosenjit

August 24, 2023 at 10:50 am #14284205

daniel-viktorV

Hi there,

I have updated the plugins as you requested, but the problem persists. (All settings have been professionally done as described. As you can see, the corresponding strings are translated: hidden link)

August 25, 2023 at 6:03 am #14288853

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for following the instructions.

In my primary inspection, I couldn't pinpoint the exact cause of the problem. However, I suspect the AJAX operation triggered after submitting the form might be related to the issue. I've escalated this issue to our 2nd tier team for a more in-depth analysis. As soon as I have more information on this matter, I will surely let you know.

Thanks for your continued patience and cooperation in this matter.

Best Regards,
Prosenjit

August 30, 2023 at 3:22 am #14309779

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well.

Our second-tier team has thoroughly investigated the problem and has successfully identified a solution for the issue. The translation support for the Retake button value was missing from the Quix and Survey master plugin which is why, it was not getting translated. In order to solve the issue, please follow the steps mentioned below.

Make sure to take a full backup of the site and database before proceeding.

- Please go to Plugins > Plugin File Editor.
- From the Select plugin to edit: dropdown, select 'Quiz and Survey Master' plugin.
- Go to /php/classes/ folder and open "class-qmn-quiz-manager.php" file
- Now scroll down to 1772 line and change the following 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 this code:

$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" />';

- Save the changes.

- Now go to "QSM > Quizzes and Surveys" and open the Quiz where you're having the issue.
- Make a slight change in the name of the Retake button and save the changes.
- Navigate to "WPML > Theme and Plugin localization" and scan the "Quiz and Survey Master" plugin for strings.
- Once it is done, please go to "WPML > String Translation" and translate the name you've added for the Retake button earlier.

Please check and let me know if that helps or if you need further assistance in this matter. I will be happy to help.

Best Regards,
Prosenjit

August 30, 2023 at 12:17 pm #14313095

daniel-viktorV

Thank you! I contacted the makers of the QSM plugin, I hope they will fix it soon!

August 31, 2023 at 9:11 am #14318525

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,

Sure! I also would like to inform you that our compatibility support team has already contacted the author of the "Quiz and Survey Master" plugin. They will look into this and let us know the further updates.

Till then, please use the solution I mentioned in my last response.

We also published an Errata mentioning the solution: https://wpml.org/errata/quiz-and-survey-master-retake-quiz-button-is-not-translated/

Let me know if there is anything else you need help with.

Best Regards,
Prosenjit