Problem translating Sensei random order questions
-
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 simply1. 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.
- You must be logged in to reply to this topic.