vtos / moodle-mod_adaptivequiz

CAT (Computer-Adaptive Testing) implementation for Moodle LMS (https://moodle.org): officially supported plugin.
https://moodle.org/plugins/mod_adaptivequiz
5 stars 9 forks source link

origin of language strings missing #24

Open 0815-xyz opened 12 months ago

0815-xyz commented 12 months ago

Hi Vitaly,

I'm not sure if that's actually an issue with the plugin or rather a fault of my local installation but I encountered a strange behavior in some language strings. In the "individual user attempts report" the entries under the heading "reason for stopping attempt" always remain fixed in the language that was selected while they were created. I tried to look what's going on and turned on the option to "show origin of languages strings" in the debugging mode. But exactly for those strings it doesn't show any origin in the {}-brackets: origin of language string missing I can see the strings when I look into the language pack settings for customization. But I'm not aware what causes those strings to behave like that. Do you know what could be wrong? I'm using version 2.3.1.

Best, Konstanze

vtos commented 12 months ago

Hey!

This is due to how these stoppage reasons are stored in the legacy code - they're stored as text. This means at the moment an attempt is stopped a relevant lang string is being taken for the reason and just gets written to the attempts table as already translated text. Something to improve here definitely. I'll include this improvement in the next release, which is expected in the beginning of next year.

Cheers!