Skip to content

Make ToS agreement translatable#9909

Merged
ahukkanen merged 2 commits intodecidim:developfrom
paulinebessoles:fix/untranslated_tos_error_message
Oct 25, 2022
Merged

Make ToS agreement translatable#9909
ahukkanen merged 2 commits intodecidim:developfrom
paulinebessoles:fix/untranslated_tos_error_message

Conversation

@paulinebessoles
Copy link
Copy Markdown
Contributor

🎩 What? Why?

This PR aims to translate the TOS agreement attribute so error messages can be translated if tos are not accepted during the sign up.

📌 Related Issues

Testing

  1. Go to the sign up page in another locale than en
  2. Try to sign up without accepting TOS
  3. See that the message is translated

📷 Screenshots

Capture d’écran 2022-10-17 à 17 16 08

♥️ Thank you!

Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

Nice catch and fix @paulinebessoles!
I've just tried it out locally, and it works as expected. I've got just a minimal change on using the full words instead of the acronym, as that's too technical for participants ("what's a TOS?").

@andreslucena andreslucena added module: core type: fix PRs that implement a fix for a bug labels Oct 18, 2022
@andreslucena andreslucena changed the title Add tos agreement attribute for flash error messages Add ToS agreement attribute for flash error messages Oct 19, 2022
@andreslucena andreslucena changed the title Add ToS agreement attribute for flash error messages Make ToS agreement translatable Oct 19, 2022
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

👍🏽 thanks for the PR!

Copy link
Copy Markdown
Contributor

@ahukkanen ahukkanen left a comment

Choose a reason for hiding this comment

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

Great improvement, thank's a lot @paulinebessoles !

You're a pro. 🚀

@ahukkanen ahukkanen merged commit a22195e into decidim:develop Oct 25, 2022
entantoencuanto added a commit that referenced this pull request Oct 26, 2022
* develop: (35 commits)
  Install turbo-rails (#9881)
  Fix conference invitations (#9664)
  Fix invalid rendering of meeting and proposal body texts (#9764)
  Make documentation site work with multiple versions (#9917)
  Bump versions on install docs (#9916)
  Standardize CSV import formats and fix private users CSV import with invalid file (#9627)
  Fix: The i18n locales selector is showing a dropdown with 3 languages (#9902)
  Make Scopes field in debates translatable (#9903)
  Make ToS agreement translatable (#9909)
  Fix issues with a11y specs (#9929)
  Remove invitations badge (#9906)
  Make initiatives order translatable (#9905)
  Add missing active actions on admin navigation menu (#9904)
  Fix user sign up with invalid name (#9896)
  Remove duplication of LastActivity queries (#9895)
  Rename IgnoredMethods to AllowedMethods in Rubocop configuration (#9893)
  Exclude malformed file from codeclimate configuration (#9910)
  Fix correct resource linking for amendments (#9887)
  Fix superposition in admin's error forms (#9871)
  Add missing i18n key in Initiatives (#9892)
  ...
entantoencuanto added a commit that referenced this pull request Oct 31, 2022
* develop: (36 commits)
  Fix proposal etiquette and length validator with base64 images (#9639)
  Install turbo-rails (#9881)
  Fix conference invitations (#9664)
  Fix invalid rendering of meeting and proposal body texts (#9764)
  Make documentation site work with multiple versions (#9917)
  Bump versions on install docs (#9916)
  Standardize CSV import formats and fix private users CSV import with invalid file (#9627)
  Fix: The i18n locales selector is showing a dropdown with 3 languages (#9902)
  Make Scopes field in debates translatable (#9903)
  Make ToS agreement translatable (#9909)
  Fix issues with a11y specs (#9929)
  Remove invitations badge (#9906)
  Make initiatives order translatable (#9905)
  Add missing active actions on admin navigation menu (#9904)
  Fix user sign up with invalid name (#9896)
  Remove duplication of LastActivity queries (#9895)
  Rename IgnoredMethods to AllowedMethods in Rubocop configuration (#9893)
  Exclude malformed file from codeclimate configuration (#9910)
  Fix correct resource linking for amendments (#9887)
  Fix superposition in admin's error forms (#9871)
  ...
Quentinchampenois pushed a commit to Quentinchampenois/decidim that referenced this pull request Nov 23, 2022
* Add tos agreement attribute for flash error messages

* Clarify tos translation and update related test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: core type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tos agreement missing error not translated in the sign up form

3 participants