Skip to content

[Security] sync translations and add a test for it #16146

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

Merged
merged 1 commit into from
Oct 6, 2015

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 6, 2015

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #15955
License MIT
Doc PR

@ogizanagi
Copy link
Contributor

@xabbuh : Well didn't see your PR. I've closed mine (#16148) 😄

{
$securityClass = new \ReflectionClass('Symfony\Component\Security\Core\Security');

return dirname($securityClass->getFileName()).'/Resources/translations';
Copy link
Contributor

Choose a reason for hiding this comment

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

When testing it from the Security component, I don't think there is the necessity to find the translation dir like this.
It'll always be into __DIR__.'/../Core/Resources/translations', right ?

Copy link
Member

Choose a reason for hiding this comment

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

agreed

@xabbuh xabbuh force-pushed the sync-security-translations branch from ba07797 to 08333ec Compare October 6, 2015 14:47
@xabbuh
Copy link
Member Author

xabbuh commented Oct 6, 2015

I addressed the comments.

@stof
Copy link
Member

stof commented Oct 6, 2015

👍

@fabpot
Copy link
Member

fabpot commented Oct 6, 2015

Thank you @xabbuh.

@fabpot fabpot merged commit 08333ec into symfony:2.7 Oct 6, 2015
fabpot added a commit that referenced this pull request Oct 6, 2015
This PR was merged into the 2.7 branch.

Discussion
----------

[Security] sync translations and add a test for it

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15955
| License       | MIT
| Doc PR        |

Commits
-------

08333ec [Security] sync translations and add a test for it
@xabbuh xabbuh deleted the sync-security-translations branch October 6, 2015 15:07
@fabpot fabpot mentioned this pull request Oct 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants