• Resolved Valice

    (@valicesupport)


    We have successfully used TranslatePress on an LMS site using Sensei. Recently, Sensei updated the output of the quiz questions to include the question number. The output uses a %d. gettext string to output the number. In our use-case, we set the questions to be randomly ordered. Since updating, TranslatePress isn’t finding the stored translations for the questions because it is looking for it with the question number. We tried enabling the Automatic Translation Memory and that worked for about half of the questions where it found the translation without the question number. I’ve tried adding the %d. to the excludes but that didn’t seem to do anything.

    In looking at the database, I can see in fhc_trp_original_strings that the “original” string is written out as simply 1. Do lenders have to… instead of possibly what needs to be there which would maybe be %d. Do lenders have to

    Would replacing that 1. with %d. in all the database entries resolve it or would that just output %d.?

    Do you have any solutions for this? Our work around has been to modify a core Sensei file for now to remove the question number. We have about 1,000 questions and about 30 quizzes so making every possible translation combination of number and question would be quite daunting.

Viewing 1 replies (of 1 total)
  • Plugin Support Anca

    (@ancavictoria)

    Hello,

    The only way would be to modify the template, so the questions don’t get generated with the number in front. Either wrap the number in a span, meaning we’ll next detect only the question, or exclude the number all together, and just use an ordered list in the template <ol><li>

    Kind Regards,

    Anca

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.