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

Translating Error Messages #293

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

rdohms
Copy link
Contributor

@rdohms rdohms commented Aug 20, 2014

Without this call to trans the custom error messages are not translated, only the proper built-in ones.

Without this call to `trans` the custom error messages are not translated, only the proper built-in ones.
@mvrhov
Copy link
Contributor

mvrhov commented Aug 21, 2014

Hm.. Before your patch the code is same as in template provided by symfony. I guess that the problem lies somewhere else.?

@florianeckerstorfer
Copy link
Member

@mvrhov You're right.

We had the call to trans in there but I reverted the change in aa5795b. However, because I am not thinking about the feature I didn't add why I remove the call to trans.

I guess the problem is with the translation domains. When there is no translation domain given (like in this PR) custom error messages are not translated. On the other side when adding the translation domain the default error messages are not translated.

@althaus
Copy link
Contributor

althaus commented Oct 28, 2014

Shouldn't the translation domain default to messages somewhere?

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.

4 participants