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

[Resource] Moved flash translation from helper to template #6277

Merged
merged 1 commit into from
Oct 7, 2016

Conversation

NoResponseMate
Copy link
Contributor

@NoResponseMate NoResponseMate commented Oct 4, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? yes
Related tickets -
License MIT

@NoResponseMate NoResponseMate changed the title [Resource] Moved flash translation from helper to template [WIP][Resource] Moved flash translation from helper to template Oct 4, 2016
@NoResponseMate NoResponseMate force-pushed the fix/flash-helper branch 3 times, most recently from a1dc441 to ae5462b Compare October 4, 2016 16:32
@NoResponseMate NoResponseMate changed the title [WIP][Resource] Moved flash translation from helper to template [Resource] Moved flash translation from helper to template Oct 4, 2016
@NoResponseMate NoResponseMate force-pushed the fix/flash-helper branch 2 times, most recently from 227e75f to 99e24be Compare October 5, 2016 12:30
if ($flashMessage === $translatedMessage) {
$translatedMessage = $this->translateMessage(sprintf('sylius.resource.%s', $actionName), $metadata);
if ($this->isResourceDefaultMessage($message, $metadata->getName(), $actionName)) {
$message = $this->getResourceMessage($actionName);
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. We've got a message sylius.customer.update
  2. It happens to be the resource default message
  3. We replace it with sylius.resource.update
  4. No profit, wtf?

@pjedrzejewski
Copy link
Member

Thank you Jasiek! :)

@NoResponseMate NoResponseMate deleted the fix/flash-helper branch October 9, 2016 17:34
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
[Resource] Moved flash translation from helper to template
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.

None yet

5 participants