Edit the post text and replace the french text with an English text, e.g.: another text completely different in English
Click on "translate"
The translate text is test de publication
I didn't take time to search for the reason of this bug, but I found another bug that occurs for all translated text, and that might explain this problem:
In the TranslateController, when RichTextTranslation::output($fixedTranslation) is triggered, the translated message is intercepted again by the Event, and added as new line to the translator_cache table with orginial set to 1.
This line is useless in the database, and might be the source of this bug.
Steps to reproduce:
test de publication
another text completely different in English
test de publication
I didn't take time to search for the reason of this bug, but I found another bug that occurs for all translated text, and that might explain this problem:
In the
TranslateController
, whenRichTextTranslation::output($fixedTranslation)
is triggered, the translated message is intercepted again by the Event, and added as new line to thetranslator_cache
table withorginial
set to1
.This line is useless in the database, and might be the source of this bug.