Bug in AMOS?

Bug in AMOS?

لە لایەن Ralf Krause -
Number of replies: 4
وێنەی Language pack maintainers

Hi David,

could it be that there is a bug in AMOS? Yesterday Nicolas Martignony fixed some issues for the Moodle Benchmark plugin. He uploaded the plugin to the Moodle plugin page so that everybody can update the plugin in his Moodle.

There are two new text strings in the new version and one string changed. I translated the two new strings today but the third string did not change in the english version for the string. If you want to see the mistake you can download the plugin and look for the string in the plugin and then in AMOS.

$string['slowwebsolution'] = '<ul><li><a href="{$a}" target="_blank">Purge the Moodle cache</a>.</li></ul>';

Best regards, 
Ralf

Ralf Krause
moodleSCHULE e.V.

In reply to Ralf Krause

Re: Bug in AMOS?

لە لایەن David Mudrák -
وێنەی Language pack maintainers

Thank you Ralf and Koen.

I have MDLSITE-6941 on my urgent to-do list and I believe this may very well be related. I hope I'll get to fixing that ASAP. Will report there in the tracker.

In reply to Ralf Krause

Re: Bug in AMOS?

لە لایەن David Mudrák -
وێنەی Language pack maintainers

Right. Yeah, I can see what is going on here.

If you look at the string history for the "slowwebsolution" string, you will see that the recent change was imported to AMOS. But it did not get imported as the most recent version. This latest plugin version v1.5.1 (2023012800) has Moodle 2.7 and higher marked as supported versions. So AMOS imports this string as for Moodle 2.7 and higher. But there were plugin versions such as v1.4.0 that had more recent Moodle versions marked as supported. And these strings were imported as more recent, effectively taking precedence over the 2.7 ones (even if 2.7 ones were added later).

This is not right of course. I will need to think about the best way to handle these cases.

AMOS export log

String history report