Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Participatory space name in upcoming meetings cells in homepage not translatable #10822

Closed
paulinebessoles opened this issue May 5, 2023 · 3 comments

Comments

@paulinebessoles
Copy link
Contributor

Describe the bug

As an admin, when trying to translate the participatory space name in the upcoming meetings block in homepage, I can't manage to find the translations keys in the yml file nor with the external term_customizer gem.

To Reproduce

  1. Try to find the translation key for this string in the .yml files
  2. Try to find the translation key for this string on an instance with the Term customizer external module enabled

Expected behavior

As an admin, as for the other translation keys, I expect to be able to change the semantics for participatory spaces in all the platform, homepage upcoming meetings block included.

Screenshots

Capture d’écran 2023-05-05 à 18 05 32

Stacktrace

No response

Extra data

  • Browser: Firefox
  • Decidim Version: develop, 0.27, 0.26
  • Decidim installation: nightly

Additional context

<%= participatory_space_class_name %>

      def participatory_space_class_name
        model.component.participatory_space.class.model_name.human
      end

https://github.com/decidim/decidim/blob/1eb6618e2c9a0d229be3c8d66ec71a528e6e0916/decidim-meetings/app/cells/decidim/meetings/meeting_s_cell.rb#LL12C1-L14C10

@alecslupu
Copy link
Contributor

@paulinebessoles I think this is not a bug ...

I guess you could configure the following keys:

Assemblies:

  • en.activerecord.models.decidim/assembly.one
  • en.activerecord.models.decidim/assembly.other

Votings:

  • en.activerecord.models.decidim/voting.one
  • en.activerecord.models.decidim/voting.other

Conferences:

  • en.activerecord.models.decidim/conference.one
  • en.activerecord.models.decidim/conference.other

and so on ...

@paulinebessoles
Copy link
Contributor Author

You're right, it worked in my local install for develop branch! Sorry for the mistake, I think you can close this issue.

@alecslupu
Copy link
Contributor

Closing the issue, as per reporter comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants