This site uses cookies. By continuing to browse the site, you agree to our use of cookies. Find out more about cookies.
Skip to main content
Metadecidim's official logo
  • English Triar la llengua Elegir el idioma Choose language
    • Català
    • Castellano
Sign Up Sign In
  • Home
  • Processes
  • Assemblies
  • Initiatives
  • Consultations
  • Conferences
  • Help

Propose new functionalities for Decidim software

#DecidimRoadmap Designing Decidim together

Phase 1 of 1
Open 2019-01-01 - 2030-12-31
Process phases Submit a proposal
  • The process
  • Debates
  • Propose new features
  • News
chevron-left Back to list

Use machine translation in notifications

Avatar: Virgile Deville Virgile Deville
29/01/2021 10:10  
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

  • Filter results for category: Follow and notifications Follow and notifications

The development of this proposal has finished

  • 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

List of Endorsements

Avatar: Juan Ellesen Juan Ellesen
Avatar: Alexandru Emil Lupu Alexandru Emil Lupu
Endorsements count2
Use machine translation in notifications Comments 9

Reference: MDC-PROP-2021-01-16207
Version number 5 (of 5) see other versions
Check fingerprint

Fingerprint

The piece of text below is a shortened, hashed representation of this content. It's useful to ensure the content hasn't been tampered with, as a single modification would result in a totally different value.

Value: caa5067e96e75e1a8ff61cf7b6d8d626a293ff98c380b66eab350e2ded61b843

Source: {"body":{"en":"<p><strong>Is your feature request related to a problem? A clear and concise description of what the problem is.</strong></p><p><strong><br></strong>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.</p><p><strong><br></strong>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.</p><p><strong><br>Describe the solution you'd like</strong></p><p><strong><br></strong>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.</p><p><strong><br></strong>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.</p><p><strong><br></strong>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)</p><p>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.”</p><p><strong>T</strong>o 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.</p><p><strong>Describe alternatives you've considered</strong></p><p><strong><br></strong>No</p><p><strong><br>Does this issue could impact on users private data?</strong></p><p><strong><br></strong>No</p><p><strong><br>Funded by</strong></p><p><strong><br></strong>EU Commission</p>"},"title":{"en":"Use machine translation in notifications"}}

This fingerprint is calculated using a SHA256 hashing algorithm. In order to replicate it yourself, you can use an MD5 calculator online and copy-paste the source data.

Share:

link-intact Share link

Share link:

Please paste this code in your page:

<script src="https://meta.decidim.org/processes/roadmap/f/122/proposals/16207/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/roadmap/f/122/proposals/16207/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Related images

Frame 2.png

Report inappropriate content

Is this content inappropriate?

Reason

9 comments

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed
Conversation with Virgile Deville
Avatar: Virgile Deville Virgile Deville
04/05/2021 18:23
  • Get link Get link

Hello @carol
I talked again about this with the EU team.
It turns out that weather we display translations by default or the original content is admin config that you can choose in the admin (global config). (Screen Capture : https://user-images.githubusercontent.com/11473995/117036464-c1a21a00-ad05-11eb-8e81-482646bf1cf6.png)
So it makes sense that notifications (email, in-app) follow the same logic. Depending on the configuration chosen by the admin the user generated content is displayed translated (a text warning should say when it's a translation) or not.
Let us know if developers can proceed :)

Avatar: Carol Romero Carol Romero verified-badge
05/05/2021 10:33
  • Get link Get link

Hi @virgile_deville, yes, it makes sense to be consistent with the configuration. Anyway, to be transparent with the participants and to avoid misunderstandings caused by automatic translations, our proposal is that the mail notification incorporates the original text and the translation.
Thus, if the configuration is "translated text first", the translation is shown first and then the original text, and vice versa. See: https://tinyurl.com/yekgg4x6

Avatar: Virgile Deville Virgile Deville
12/05/2021 17:01
  • Get link Get link

Hello Carol,
Thanks for your feedback !
Great idea to have the translation and the original in the email.
I would have it regardless of the configuration.

Discussing with the EU tech team, we are going to have to introduce a delay of a couple minutes (that will be configurable at the organization level) on sending the email that we make sure the tanslation is available in the db.
If for some reason the translation is not available we plan to have a text replacing the translated text block by an error message that would go like this "Sorry the automated translation could not be made at the moment the email was made. Please click on the link bellow to get the translation.".

Does all of this sounds good ?

Avatar: Alexandru Emil Lupu Alexandru Emil Lupu
17/05/2021 13:58
  • Get link Get link

The information presented in the email should be a plain information that would allow the recipient of the email easily understand why there is no translation in that email, so, our recommendation for the text is: a "Sorry, the automated translation could not be retrieved when the email has been sent. You can check the original text and translations on the following %{link}" (The variable can be a be a direct link to the admin panel containing that particular resource ).

Avatar: Virgile Deville Virgile Deville
21/05/2021 16:00
  • Get link Get link

Hello @alecslupu
You text is better, as this meta proposal is not about only admin notifications but notifications in general I'd put a link to the public ressource in the front end.

Avatar: Virgile Deville Virgile Deville
21/05/2021 16:01
  • Get link Get link

@carol I think we are all set here ! Can alecs send a PR for this ?

Conversation with Virgile Deville
Avatar: Virgile Deville Virgile Deville
10/06/2021 17:07
  • Get link Get link

@carol I just updated the proposal with the new version I showed you yesterday :)

Avatar: Carol Romero Carol Romero verified-badge
16/06/2021 13:29
  • Get link Get link

Thanks @virgile_deville, proposal reviewed!

Avatar: Alexandru Emil Lupu Alexandru Emil Lupu
04/08/2021 00:03
  • Get link Get link

PR available here : https://github.com/decidim/decidim/pull/8174

Add your comment

Sign in with your account or sign up to add your comment.

Loading comments ...

  • Terms and conditions of use
  • About the community
  • Download Open Data files
  • Metadecidim at Twitter Twitter
  • Metadecidim at Instagram Instagram
  • Metadecidim at YouTube YouTube
  • Metadecidim at GitHub GitHub
Creative Commons License Website made with free software.
Decidim Logo

Confirm

OK Cancel

Please sign in

decidim Sign in with Decidim
Or

Sign up

Forgot your password?