Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Allow FormElementErrors view helper to translate messages #4854

Closed
wants to merge 1 commit into from
Closed

Allow FormElementErrors view helper to translate messages #4854

wants to merge 1 commit into from

Conversation

RalfEggert
Copy link
Contributor

Allow FormElementErrors view helper to translate messages

Please ignore PRs 4671 and 4672

@RalfEggert
Copy link
Contributor Author

Forgot the links

#4671
#4672

array_walk_recursive($messages, function ($item) use (&$messagesToPrint, $escapeHtml, $self) {
if (null !== ($translator = $self->getTranslator())) {
$item = $translator->translate(
$item, $self->getTranslatorTextDomain()
Copy link
Member

Choose a reason for hiding this comment

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

One argument per line if you're going to do multiple lines; otherwise, move to the line where the call is made.

weierophinney added a commit that referenced this pull request Jul 19, 2013
Allow FormElementErrors view helper to translate messages
weierophinney added a commit that referenced this pull request Jul 19, 2013
- Incorrect assumption in one test led to a failure; fixed.
- Minor CS changes for array notation, method arguments
weierophinney added a commit that referenced this pull request Jul 19, 2013
@ghost ghost assigned weierophinney Jul 19, 2013
@weierophinney
Copy link
Member

I incorporated feedback on merge.

Thanks, @RalfEggert !

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

Successfully merging this pull request may close these issues.

2 participants