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

Add support for machine translations of user-generated content

Avatar: Marc Riera Marc Riera
30/04/2020 12:43  
Finished

**Is your feature request related to a problem? Please describe.**

When a user submits content from the public area, they don't have a choice to translate the content. And, if they did, maybe they didn't know all the languages of the organization, leaving other users unable to read that content. This happened in Metadecidim, where we started using Catalan and Spanish, and later added English. This made new users potentially unable to read some of the content of the website.

**Describe the solution you'd like**

We propose adding a way to automatically translate user-submitted content. We'll work on a Decidim module to handle this feature, leaving integrations with real services up to other developers. This is the same idea we have with verifications: Decidim has the whole framework, but the real integration is made by each installation. Possible future integrations might include Google Translate or Bing, for example.

This should be both an installation configuration and an organization setting. The installation configuration is needed so that the app knows there's a way to translate content, and the organization setting will be used to enable this per organization.

Note that this proposal will affect submissions from any side of the app: public and admin. We'll avoid translating for a locale that has been submitted by a user, and users will be able to edit any machine-translated content if Decidim allows it (forms in the admin section, for example).

**Describe alternatives you've considered**

None.

**Additional context**

None.

**Does this issue could impact on users private data?**

No.

  • Filter results for category: Multi-language Multi-language

The development of this proposal has finished

  • Reviewed by @product and included in Decidim Roadmap
  • Developed by Codegram
  • Available in release 0.23 via #6127

List of Endorsements

Avatar: Ivan Vergés Ivan Vergés verified-badge
Avatar: Marc Riera Marc Riera
Endorsements count2
Add support for machine translations of user-generated content Comments 8

Reference: MDC-PROP-2020-04-15238
Version number 3 (of 3) 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: b4dfbe0b0a024c288c5c09d787ab8968cd292756017686d1e09e88c5bb237be4

Source: {"body":{"en":"<p><strong>**Is your feature request related to a problem? Please describe.**</strong></p><p>When a user submits content from the public area, they don't have a choice to translate the content. And, if they did, maybe they didn't know all the languages of the organization, leaving other users unable to read that content. This happened in Metadecidim, where we started using Catalan and Spanish, and later added English. This made new users potentially unable to read some of the content of the website.\r\n\r\n<strong>**Describe the solution you'd like**</strong></p><p>We propose adding a way to automatically translate user-submitted content. We'll work on a Decidim module to handle this feature, leaving integrations with real services up to other developers. This is the same idea we have with verifications: Decidim has the whole framework, but the real integration is made by each installation. Possible future integrations might include Google Translate or Bing, for example.</p><p>This should be both an installation configuration and an organization setting. The installation configuration is needed so that the app knows there's a way to translate content, and the organization setting will be used to enable this per organization.</p><p>Note that this proposal will affect submissions from any side of the app: public and admin. We'll avoid translating for a locale that has been submitted by a user, and users will be able to edit any machine-translated content if Decidim allows it (forms in the admin section, for example).\r\n\r\n<strong>**Describe alternatives you've considered**</strong></p><p>None.\r\n\r\n<strong>**Additional context**</strong></p><p>None.\r\n\r\n<strong>**Does this issue could impact on users private data?**</strong></p><p>No.</p>"},"title":{"en":"Add support for machine translations of user-generated content"}}

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/15238/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/roadmap/f/122/proposals/15238/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Report inappropriate content

Is this content inappropriate?

Reason

8 comments

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed
Conversation with Virgile Deville
Avatar: Virgile Deville Virgile Deville
30/04/2020 14:04
  • Get link Get link

Hello @mrcasals,

Great idea for a module. We did a simple integration back then : Automatic translation for user generated content
We were using Deepl which translations are quite good quality but limited to dozens languages.

Do you plan to save the automated translation in the DB ?
Good idea to do it in a module !

Avatar: Marc Riera Marc Riera
04/05/2020 11:06
  • Get link Get link

Hi @virgile_deville ! Yes, since it's a project we expect it will have a lot of traffic we planned on saving the translations to the DB. Ideally, we'll detect those translations that are automatic, and notify the user that the content is automatically translated. We still have to refine the architecture for that, though.

I see you posted the code with the changes you made, but I can't see it live in the application linked in the comments! Did you remove that feature? I can't find a way to translate this Proposal into French: https://monopinion.belgium.be/processes/stopfakenews/f/81/proposals/107

Avatar: Virgile Deville Virgile Deville
04/05/2020 11:16
  • Get link Get link

Hey,
Can't wait to see your implementation !
You can test ours here : https://wb1170.monopinion.belgium.be/processes/budget/f/121/
You need to set the language of Decidim in a different one from the proposal so that the source language is different from the destination language.
@Armand-OSP can link a more recent version of the code I think.

Avatar: Marc Riera Marc Riera
04/05/2020 11:46
  • Get link Get link

Nice, thanks!

BTW, once the request is accepted by Product we'll open a technical discussion issue in GitHub with our proposal, so that community can keep participating! :)

Avatar: Marc Riera Marc Riera
27/05/2020 08:53
  • Get link Get link

BTW @virgile_deville I checked your implementation and we'll go with a different approach. Instead of requesting the translation every time, we'll automatically translate everything in the background, and try to show the translated content. We'll add a warning for the user saying that the content was automatically translated, and let them see the original content.

We've started working on this at https://github.com/decidim/decidim/pull/6127

Avatar: Carol Romero Carol Romero verified-badge
04/05/2020 14:19
  • Get link Get link

Hi @mrcasals! This is a very welcome proposal which, as Virgile says, was proposed some time ago and we have never managed to integrate it. We look forward to continue discussing the details in the github issue.

Avatar: Carol Romero Carol Romero verified-badge
04/05/2020 14:21
  • Get link Get link

btw, could you indicate which organization funds these features to give it the proper attribution? Thanks!

Avatar: Marc Riera Marc Riera
27/05/2020 08:53
  • Get link Get link

We've started working on this at https://github.com/decidim/decidim/pull/6127

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?