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

Allow error messages to be translated #1186

Open
wesleybl opened this issue Nov 28, 2023 · 1 comment
Open

Allow error messages to be translated #1186

wesleybl opened this issue Nov 28, 2023 · 1 comment

Comments

@wesleybl
Copy link
Member

BUG/PROBLEM REPORT / FEATURE REQUEST

What I did:

With Volto, on a website in Portuguese, I accessed a private page with an anonymous user.

What I expect to happen:

I expect the error message to be displayed in Portuguese.

What actually happened:

The message in English was displayed:

You are not authorized to access this resource.

This message comes from Zope exception:

m = "You are not authorized to access this resource."

Would it be possible for the message to be a msgid instead of a string?

@icemac
Copy link
Member

icemac commented Dec 15, 2023

There was once #631 but it went nowhere.

You could come up with a PR to push your feature request forward.

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

3 participants
@icemac @wesleybl and others