Add Decidim global and organization config for machine translation#6128
Add Decidim global and organization config for machine translation#6128tramuntanal merged 10 commits intodecidim:feat/machine-translationfrom
Conversation
* New translations en.yml (French) * New translations en.yml (Hungarian) * New translations en.yml (Hungarian)
decidim-generators/lib/decidim/generators/app_templates/initializer.rb
Outdated
Show resolved
Hide resolved
decidim-admin/app/views/decidim/admin/organization/_form.html.erb
Outdated
Show resolved
Hide resolved
This reverts commit e66e49a.
|
@mrcasals can you review? |
|
@anaghavl Linter is complaining, can you check it please? Note you can automatically fix it running |
c8fe241 to
513b8f2
Compare
|
@decidim/core please, could we get this reviewed? More context for this PR can be found at #6127 |
microstudi
left a comment
There was a problem hiding this comment.
I understand that this is only to enable/disable the option for machine translation.
There's no tests in here, will they be included later on?
in the file update_organization_spec.rb the property rich_text_editor_in_public_views is checked, maybe this one could be added too.
In any case, It seems that you've added an empty file called test, can you remove it please?
|
Hi @mrcasals there's this PR pending since @microstudi 's review. Do you plan to work on in soon? |
|
@tramuntanal sorry, this slipped through my filters and forgot about it. @anaghavl can you check @microstudi's comments please? 😄 |
|
@mrcasals Sorry, this slipped through my emails too. |
|
Yay! @decidim/core can you review this again please? 😄 |
…6128) * Adding setting to organizations table and creating global config * Adding config accessor to core.rb * Base branch * Added a check to display machine translation settings and changed initializer value * Fixing lint issue in migration file * Adding test and removing test file Co-authored-by: decidim-bot <decidim-bot@users.noreply.github.com> Co-authored-by: anagha <anagha1996@gmail.com>
…6128) * Adding setting to organizations table and creating global config * Adding config accessor to core.rb * Base branch * Added a check to display machine translation settings and changed initializer value * Fixing lint issue in migration file * Adding test and removing test file Co-authored-by: decidim-bot <decidim-bot@users.noreply.github.com> Co-authored-by: anagha <anagha1996@gmail.com>
…6128) * Adding setting to organizations table and creating global config * Adding config accessor to core.rb * Base branch * Added a check to display machine translation settings and changed initializer value * Fixing lint issue in migration file * Adding test and removing test file Co-authored-by: decidim-bot <decidim-bot@users.noreply.github.com> Co-authored-by: anagha <anagha1996@gmail.com>
…6128) * Adding setting to organizations table and creating global config * Adding config accessor to core.rb * Base branch * Added a check to display machine translation settings and changed initializer value * Fixing lint issue in migration file * Adding test and removing test file Co-authored-by: decidim-bot <decidim-bot@users.noreply.github.com> Co-authored-by: anagha <anagha1996@gmail.com>
…6128) * Adding setting to organizations table and creating global config * Adding config accessor to core.rb * Base branch * Added a check to display machine translation settings and changed initializer value * Fixing lint issue in migration file * Adding test and removing test file Co-authored-by: decidim-bot <decidim-bot@users.noreply.github.com> Co-authored-by: anagha <anagha1996@gmail.com>
* Base branch * remove file * Base branch * remove file * Identify translatable resources (#6145) * Base branch * remove file * Require confirmation on exiting a survey mid-answering (#6118) * Require confirmation on exit * Add specs * Use path instead of url * Fix changelog * Trigger build * Fix expected path on test * Fix method call * Take textareas and selects into account * WIP adding concern * Adding concern in all the models which have translatable fields * removed :extended_data as translatable field * WIP adding concern * Adding concern in all the models which have translatable fields * Revert "Require confirmation on exiting a survey mid-answering (#6118)" This reverts commit bdeb933. * Revert "remove file" This reverts commit 2565dbb. * Revert "Base branch" This reverts commit 2a09cc4. Co-authored-by: Marc Riera Casals <mrc2407@gmail.com> * Add Decidim global and organization config for machine translation (#6128) * Adding setting to organizations table and creating global config * Adding config accessor to core.rb * Base branch * Added a check to display machine translation settings and changed initializer value * Fixing lint issue in migration file * Adding test and removing test file Co-authored-by: decidim-bot <decidim-bot@users.noreply.github.com> Co-authored-by: anagha <anagha1996@gmail.com> * Identifying translatable fields in meetings and comments (#6333) * Base branch * remove file * Idenifying translatable fields in meetings and comments Co-authored-by: Marc Riera Casals <mrc2407@gmail.com> * Identifying translatable fields for proposals (#6346) * Add machine translation service (#6179) Co-authored-by: Marc Riera Casals <mrc2407@gmail.com> Co-authored-by: Marc Riera <mrc2407@gmail.com> * Make some fields non-translatable * Improve spec * Don't run job if class is not defined * Improvee method naming * Machine translation display priority (#6385) * Add docs on how to enable the integration * Add docs on how to write a machine translation service * Improve code strength * Fix specs * Fix specs Co-authored-by: anagha vl <44900292+anaghavl@users.noreply.github.com> Co-authored-by: decidim-bot <decidim-bot@users.noreply.github.com> Co-authored-by: anagha <anagha1996@gmail.com>
🎩
📌 Related Issues
📋 Subtasks
CHANGELOGentry📷 Screenshots (optional)