andrewhancox / moodle-filter_translations

8 stars 8 forks source link

Zero width joiner characters can be copied and breaks things #173

Open rjnl opened 1 year ago

rjnl commented 1 year ago

When inline translation is turned on and you copy some translated/translatable content, its possible to copy the zero with joiner (ZWJ) characters.

Announcements‍‍​‍‍

If they are copied into the translated text and saved then you do not see the inline translation icon for that translated content.

The only way to edit the translation is from the "Manage translations" report. When you remove the ZWJ characters and save the changes, the inline translation icon is shown again for that content.