Skip to content

Add admin missing translations#7702

Merged
mrcasals merged 6 commits intodecidim:developfrom
CodiTramuntana:fix/admin_missing_js_translation
Mar 26, 2021
Merged

Add admin missing translations#7702
mrcasals merged 6 commits intodecidim:developfrom
CodiTramuntana:fix/admin_missing_js_translation

Conversation

@tramuntanal
Copy link
Copy Markdown
Contributor

@tramuntanal tramuntanal commented Mar 24, 2021

🎩 What? Why?

In the admin panel there is a message that is not translated.
When editing an official Proposal the title length validator message always appears in English because translations are not loaded into JavaScript.

This PR also changes the case of the first letter of the form.length_validator message. This is: "at least 15 characters" to "At least 15 characters". This way the message doesn't start with downcase in the first part and changes to uppercase in the second part. Second part ("150 characters left") can't be changed because it is reused from decidim-comments module where it is used alone.

While working on this PR I also found a JS error when loading the edit proposal page when the proposal has no address. This is also fixed in commit 105c5f4 .

📌 Related Issues

Link your PR to an issue

  • Fixes #?

Testing

  • Login as an Administrator and, in the admin panel, edit an official proposal
  • Change locale to other than English (Catalan or Spanish for example)
  • Check that the title length help message with the min characters and remaining characters appears in the current language

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

Editing an official Proposal

Before
imatge

After
The translation will be corrected in crowdin
imatge

♥️ Thank you!

@tramuntanal tramuntanal marked this pull request as ready for review March 24, 2021 14:44
@mrcasals
Copy link
Copy Markdown
Contributor

@tramuntanal it seems tests are failing, could you review them please? 😄

@mrcasals mrcasals added module: admin type: fix PRs that implement a fix for a bug labels Mar 26, 2021
@mrcasals mrcasals changed the title Fix admin missing translations Add admin missing translations Mar 26, 2021
@mrcasals mrcasals merged commit 55dcbaf into decidim:develop Mar 26, 2021
@tramuntanal tramuntanal deleted the fix/admin_missing_js_translation branch March 29, 2021 06:13
tramuntanal added a commit to CodiTramuntana/decidim that referenced this pull request Mar 29, 2021
tramuntanal added a commit to CodiTramuntana/decidim that referenced this pull request Mar 29, 2021
entantoencuanto added a commit that referenced this pull request Mar 31, 2021
* develop: (26 commits)
  Fix trustees admin menu (#7772)
  Do not modify the controller class in the controller tests that render views (#7755)
  Add HTML escaping to the expectations as the strings are escaped (#7760)
  Add automated accessibility audit + HTML validation to CI pipeline (#7751)
  fix(elections): js assets manifest (#7759)
  Add admin missing translations (#7702)
  Add Conferences and Admin missing translations (#7653)
  New Crowdin updates (#7735)
  Improve vote flow (#7682)
  Strip the <p> tags from inside the heading elements (#7732)
  Fix the date cell spec failing randomly close to day changes (#7703)
  Change the timeline date color for accessible color contrast against its background (#7750)
  Remove the opacity from process upcoming/past/all filters for accessible contrast (#7749)
  Fix color contrast against the sidebar navigation background (#7748)
  Validate the HTML for the account page (#7747)
  Fix report modal form accessibility (#7746)
  Accessibility fixes for conversations (#7745)
  Add a landmark ARIA role to the cookie banner (#7738)
  Fix HTML validation on standalone content page (#7744)
  Add aria-label to the area filter on participatory space pages (#7743)
  ...
oriolgual pushed a commit that referenced this pull request Apr 5, 2021
tramuntanal added a commit to CodiTramuntana/decidim that referenced this pull request Apr 14, 2021
…in_missing_js_translation

Add admin missing translations (decidim#7702)
laurajaime pushed a commit to CodiTramuntana/decidim that referenced this pull request May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants