Skip to content

Fix translation issue on import projects mailer#13894

Merged
andreslucena merged 1 commit intodevelopfrom
fix/accountability-mailer
Jan 23, 2025
Merged

Fix translation issue on import projects mailer#13894
andreslucena merged 1 commit intodevelopfrom
fix/accountability-mailer

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

🎩 What? Why?

While reviewing #13817, i noticed that we have a template that no matter what, tries to use the english translation. This is not OK, as there are instances where English is not configured ( for example Decidim Barcelona )

📌 Related Issues

Link your PR to an issue

Testing

  1. Login to admin
  2. Visit a budget component set at least 1 project as selected for implementation
  3. Visit the accountability module and import from component
  4. Visit the letter opener and see the text
  5. Apply patch
  6. repeat 2,3,4
  7. See the message remains unchanged.

Alternatively, create a new app, without English language being configured.
Seed the DB, repeat steps 2,3,4 . I am expecting that step 4 would generate an error as en is not configured.

📷 Screenshots

Please add screenshots of the changes you are proposing
Description

♥️ Thank you!

@alecslupu alecslupu added type: fix PRs that implement a fix for a bug release: v0.28 Issues or PRs that need to be tackled for v0.28 release: v0.29 Issues or PRs that need to be tackled for v0.29 labels Jan 22, 2025
@github-actions github-actions bot added module: accountability and removed release: v0.28 Issues or PRs that need to be tackled for v0.28 release: v0.29 Issues or PRs that need to be tackled for v0.29 labels Jan 22, 2025
@alecslupu alecslupu marked this pull request as ready for review January 22, 2025 12:19
@andreslucena andreslucena added this to the 0.30.0 milestone Jan 23, 2025
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.

Should we add a spec for this? I have doubts, as it could mean that we probably should add specs for "not English language" in practically all the spec, so we'd be practically duplicating the specs workflows and so on... What do you think?

@alecslupu
Copy link
Copy Markdown
Contributor Author

alecslupu commented Jan 23, 2025

Should we add a spec for this? I have doubts, as it could mean that we probably should add specs for "not English language" in practically all the spec, so we'd be practically duplicating the specs workflows and so on... What do you think?

I have not added a spec on this fix because we would need to do the same for all the mailers.
The bug is there from #9604, and nobody actually noticed :)

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.

As we mentioned, to add a spec would be to add 100s specs, so let's merge this as it's an improvement for sure

@andreslucena andreslucena merged commit b168209 into develop Jan 23, 2025
@andreslucena andreslucena deleted the fix/accountability-mailer branch January 23, 2025 13:04
entantoencuanto added a commit that referenced this pull request Jan 24, 2025
* develop: (30 commits)
  Change hardcoded english in seeds (#13917)
  Allow importing accountability results from a Proposals component (#13817)
  Remove user interests (#13910)
  Move remaining categories from some resources to taxonomies (#13838)
  Fix translation issue on import projects mailer (#13894)
  Update DownloadYourData exports for decidim-debates (#13895)
  Allow admins to publish the questions' answers in surveys (#13786)
  Fix flaky spec in autocomplete (#13901)
  Refine taxonomy filters (part 2) (#13725)
  Fix single attachment with title (#13795)
  Fix incorrect breadcrumb encoding on mobile and tablet (#13891)
  Add string for unpublish survey admin log message (#13890)
  Fix ux meeting date location (#13872)
  New Crowdin updates (#13767)
  Fix deleted user error in schema (#13681)
  Remove assembly types from user interaction (#13881)
  Remove participatory process types from user interaction (#13880)
  Lock concurrent-ruby to 1.3.4 (#13879)
  Fix taxonomy serialization for export/imports (#13857)
  Adjust form upload label changes (#13836)
  ...
@alecslupu alecslupu added the release: v0.29 Issues or PRs that need to be tackled for v0.29 label Jan 27, 2025
@alecslupu alecslupu added the release: v0.28 Issues or PRs that need to be tackled for v0.28 label Jan 27, 2025
antopalidi pushed a commit to openpoke/decidim that referenced this pull request Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: accountability release: v0.28 Issues or PRs that need to be tackled for v0.28 release: v0.29 Issues or PRs that need to be tackled for v0.29 type: fix PRs that implement a fix for a bug

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants