Resolution: Not a bug
I just came across this flaw which was at least not there before the big AMOS relaunch recently.
Steps to reproduce:
- Open AMOS translator.
- Search for a string which does contain a line break HTML tag in the original string, for example "deleteeventdesc | block_opencast" (see string upstream in https://github.com/Opencast-Moodle/moodle-block_opencast/blob/master/lang/en/block_opencast.php#L130)
- Try to translate this string 1:1 into your local language.
- The line break HTML tag is shown as plain HTML tag within the original string and it will be up to the translator to copy it over to the translated string.
- The line break is shown as line break within the original string:
- The translator can't see the HTML tag behind the line break and won't be able to exactly replicate the original string structure into the local language.
- You can argue if this change is an improvement or a regression. It's especially a fact that HTML tags are discouraged in Moodle strings.
- Howerver, I would still assess this as a regression as several strings still contain HTML tags nowadays and it should be possible for translators to translate them as exact as possible, without introducing layout flaws into the local language packs.