mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
When strings are tagged for translation using `tr this`, the strings were passed into the frontend i18n as-is (including new line and tab characters that are not functional in the text, existing just to format the HTML files reasonably). This did not match the algorithm used in `manage.py makemessages` for extracting strings for translation, which (correctly) removed that whitespace to provide a good experience for translators. The fix is for the `tr this` implementation to use that same whitespace-stripping algorithm. Tested manually by checking if those strings that were not translated earlier were translated, and also fixed an automated test that had the wrong result, which should help prevent regressions. Fixes #13389.