Hi all, especially hi David,
today, I noticed a behavior of AMOS which I did not know before and which was somehow unexpected to me.
Prerequisites:
- I have a plugin which is published to the Moodle plugin repo for (and only for) Moodle 3.6
- For Moodle 3.6, all plugin strings are translated in AMOS
Steps to reproduce:
- I publish an upgrade to this plugin to the Moodle plugin repo for (and only for) Moodle 3.7
- Within this plugin upgrade, I have fixed some typos and other really minor things within the plugin language pack. The string identifiers in the plugin language pack were not changed at all.
Expected result:
- All plugin strings which have not been modified between the plugin versions are transferred to the 3.7 language pack.
- All plugin strings which have been modified between the plugin versions are also transferred to the 3.7 language pack and it's up to me as translator to fix the translation like I have to do with all modifications in the english language pack.
Actual result:
- All plugin strings which have not been modified between the plugin versions are transferred to the 3.7 language pack.
- All plugin strings which have been modified between the plugin versions are not transferred to the 3.7 language pack and have to be translated from scratch.
- This happened with our plugin local_bulkenrol
- Strings like "enrolplugin" were transferred from 3.6 to 3.7 without problem.
- Strings like "bulkenrol_form_intro" which were modified during the upgrade appear as not translated in 3.7.
I am wondering if this behavior has been always this way or if it is something new which I simply did not notice before.
I am also wondering if I am the only one who would expect it to work differently as it does at the moment.
The risk which I am seeing (and what happened to me during the plugin upgrade) is that the translator forgets to translate the plugin after the Moodle version upgrade and will also have an effort overhead to fetch the translation from a previous version to paste it into the current version.
Cheers,
Alex