Skip to content

Add Decidim global and organization config for machine translation#6128

Merged
tramuntanal merged 10 commits intodecidim:feat/machine-translationfrom
codegram:FOE_1
Jul 20, 2020
Merged

Add Decidim global and organization config for machine translation#6128
tramuntanal merged 10 commits intodecidim:feat/machine-translationfrom
codegram:FOE_1

Conversation

@mrcasals
Copy link
Copy Markdown
Contributor

@mrcasals mrcasals commented May 26, 2020

🎩

  1. Added Organization setting to enable machine translations disabled by default, changes in
  • Migration
  • Form
  • View

Screenshot 2020-05-26 at 1 50 09 AM
Screenshot 2020-05-26 at 1 50 24 AM

  1. Global config to enable machine translation, disabled by default.

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Add documentation regarding the feature
  • Add/modify seeds
  • Add tests
  • Another subtask

📷 Screenshots (optional)

Description

decidim-bot and others added 4 commits February 24, 2020 18:05
* New translations en.yml (French)

* New translations en.yml (Hungarian)

* New translations en.yml (Hungarian)
@anaghavl anaghavl changed the title [WIP] Foe 1 Add Decidim global and organization config for machine translation May 26, 2020
@anaghavl
Copy link
Copy Markdown
Contributor

anaghavl commented May 26, 2020

@mrcasals can you review?

@mrcasals mrcasals marked this pull request as ready for review May 26, 2020 12:22
@mrcasals
Copy link
Copy Markdown
Contributor Author

@anaghavl Linter is complaining, can you check it please? Note you can automatically fix it running bundle exec rubocop -a <path to file>

@anaghavl anaghavl force-pushed the feat/machine-translation branch from c8fe241 to 513b8f2 Compare June 3, 2020 08:51
@mrcasals
Copy link
Copy Markdown
Contributor Author

mrcasals commented Jun 3, 2020

@decidim/core please, could we get this reviewed? More context for this PR can be found at #6127

@mrcasals mrcasals requested review from microstudi and tramuntanal and removed request for tramuntanal June 3, 2020 12:51
Copy link
Copy Markdown
Contributor

@microstudi microstudi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@tramuntanal
Copy link
Copy Markdown
Contributor

Hi @mrcasals there's this PR pending since @microstudi 's review. Do you plan to work on in soon?
Can I convert into a draft or WIP?

@mrcasals
Copy link
Copy Markdown
Contributor Author

@tramuntanal sorry, this slipped through my filters and forgot about it. @anaghavl can you check @microstudi's comments please? 😄

@anaghavl
Copy link
Copy Markdown
Contributor

@mrcasals Sorry, this slipped through my emails too.
I added the test for update_organization_spec.rb and removed the test file! 😅

@mrcasals
Copy link
Copy Markdown
Contributor Author

Yay! @decidim/core can you review this again please? 😄

@tramuntanal tramuntanal self-assigned this Jul 20, 2020
Copy link
Copy Markdown
Contributor

@tramuntanal tramuntanal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tramuntanal tramuntanal merged commit b151a17 into decidim:feat/machine-translation Jul 20, 2020
@mrcasals mrcasals deleted the FOE_1 branch July 21, 2020 06:18
anaghavl added a commit that referenced this pull request Jul 23, 2020
…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>
anaghavl added a commit that referenced this pull request Jul 27, 2020
…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>
anaghavl added a commit that referenced this pull request Jul 28, 2020
…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>
mrcasals added a commit that referenced this pull request Aug 14, 2020
…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>
mrcasals added a commit that referenced this pull request Aug 14, 2020
…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>
tramuntanal pushed a commit that referenced this pull request Aug 17, 2020
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants