Skip to content

Check that message is hashable before calling translate on it#442

Closed
malthe wants to merge 1 commit intomasterfrom
issue-441-fast-translate-hashable
Closed

Check that message is hashable before calling translate on it#442
malthe wants to merge 1 commit intomasterfrom
issue-441-fast-translate-hashable

Conversation

@malthe
Copy link
Owner

@malthe malthe commented Jun 12, 2025

This fixes issue #441.

@malthe malthe marked this pull request as draft June 12, 2025 14:15
Copy link

@mauritsvanrees mauritsvanrees left a comment

Choose a reason for hiding this comment

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

This helps for me. Thanks!

Tested in a Plone 6.0 project by reverting this workaround in plone.namedfile.
Tested by editing chameleon/i18n.py manually, because master is not usable for me due to issue #438, so possibly a backport to a 4.4.x branch could be useful.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 15613017608

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.36%

Totals Coverage Status
Change from base Build 13355029106: 0.0%
Covered Lines: 3920
Relevant Lines: 4170

💛 - Coveralls

@malthe malthe closed this Jun 19, 2025
@malthe
Copy link
Owner Author

malthe commented Jun 19, 2025

Closing this because we're instead leaving the responsibility to downstream consumers of the package (who can better know which objects to translate).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments