-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Translation] remove duplicate code for loading catalogue. #14341
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
Conversation
aitboudad
commented
Apr 13, 2015
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Fixed tickets | ~ |
Tests pass? | yes |
License | MIT |
bf86171
to
944759d
Compare
if (null === $locale) { | ||
$locale = $this->getLocale(); | ||
} | ||
$catalogue = $this->translator->getCatalogue($locale); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep the line where it was, to minimize the diff between branches
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
944759d
to
f36430d
Compare
@@ -282,6 +262,8 @@ public function getCatalogue($locale = null) | |||
{ | |||
if (null === $locale) { | |||
$locale = $this->getLocale(); | |||
} else { | |||
$this->assertValidLocale($locale); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getCatalog Interface needs to be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
f36430d
to
192f3d8
Compare
👍 |
192f3d8
to
d742a24
Compare
Why is it done in 2.8 and not in 2.7? |
@fabpot well then I split it into 2 PR: |