Steps to replicate the issue (include links if applicable):
- Go to any translatable page that has not been translated
- Find a source string that needs documentation
- Write documentation that includes a line feed (Shift+Enter) then press Publish documentation
What happens?:
The save fails with 1–2 momentary “Error saving message documentation” popups
What should have happened instead?:
It should either (1) save the documentation, or (2) explain that line feeds are prohibited.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Having line feeds in documentation is often helpful, so this is a real problem. The problem is compounded by an unhelpful error message that doesn’t explain why the save has failed, causing the user to just give up, leaving the segment with no documentation.
Also, the fact that the error messages pop up at the top-right corner and are momentary is a problem. On portrait screens (common for translators coming from actual profeessional editorial backgrounds) the top-right corner can be visually pretty far from the active segment. If the pop-up is momentary there’s a real risk the user will never see the popup.