Vés al contingut principal

Configuració de les galetes

Fem servir galetes per assegurar les funcionalitats bàsiques del lloc web i per a millorar la teva experiència en línia. Pots configurar i acceptar l'ús de galetes, i modificar les teves opcions de consentiment en qualsevol moment.

Essencials

Preferències

Analítiques i estadístiques

Màrqueting

This proposal has been implemented

  • Reviewed by @product and accepted in the main project
  • It is funded by European Commission
  • Developed by Tremend
  • Available in release 0.26 via #8174

Use machine translation in notifications

Avatar: Virgile Deville Virgile Deville Finished

Is your feature request related to a problem? A clear and concise description of what the problem is.


As a user who follows a space or a user I receive an email notification when a new content is published. Sometimes the content I receive is not in my language which makes the email notification unreadable for me. I have to click on the link to go on the page and see the machine translation.


As an admin or moderator of a participatory space, I receive an email notification when a new content is reported. Sometimes the content I receive is not in my language which makes the moderation really hard. I have to click on the link to go on the page and see the machine translation.


Describe the solution you'd like


As a user, when machine translations are activated (Feature introduced in PR 6127 https://github.com/decidim/decidim/pull/6127 (External link)), I'd like to receive the machine translated version of the UGC (user generated contents : proposals, meetings, debates, comments) in the email notifications along with the original content to avoid any confusion.


If in the admin the configuration is “Show translated text first” we will show the translated text first then the original text, and vice versa.


Please note, that implementing this functionality, requires that all the emails that are being sent in the application having UGC, will need to be delayed for a specific amount of time, to allow the machine translation mechanism to perform its tasks. This delay is implemented only if the machine translation is configured. At the moment the delay expires, the email will be sent, even though, at that point in time, the translation is not present (original text will be sent instead). A message will be included in the notification to explain why there is no translation "Sorry, the automated translation could not be retrieved when the email has been sent. You can check the translation of the original text on the following %{link}." (To be analyzed if here can be a private/ admin link or is mandatory to have a public link to resource)

In case the content posted in the same language as the recipient’s preferred language , then a text like: “The content has been posted in your preferred language (%{language}), this is why no automated translation is displayed in this email.”

To be analyzed if it’s possible to have an auxiliary behaviour, like : if the submitted content matches the language in which the recipient has chosen to receive its content, then the email to be sent instantly.

Describe alternatives you've considered


No


Does this issue could impact on users private data?


No


Funded by


EU Commission

Comentari

Confirmar

Si us plau, inicia la sessió

La contrasenya és massa curta.

Compartir