humhub / translator-issues

NonFree Module - Issue Tracker Only
0 stars 0 forks source link

Changing original text into another language gives the translation of the original text #3

Closed marc-farre closed 1 year ago

marc-farre commented 1 year ago

Steps to reproduce:

  1. Set your account to the French language
  2. Write a french text, e.g.: test de publication
  3. Edit the post text and replace the french text with an English text, e.g.: another text completely different in English
  4. Click on "translate"
  5. The translate text is test de publication

image

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.

luke- commented 1 year ago

Hmm, I cannot reproduce this.

marc-farre commented 1 year ago

Well, I can't reproduce either! I close the issue and will reopen it if the problem occurs again later. Thanks for having tried!