-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[2.3] [Translator] fixed inconsistency in Translator #7100
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
fabpot
commented
Feb 17, 2013
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | n/a |
License | MIT |
Doc PR | n/a |
----- | ||
|
||
* added Translator::getFallbackLocales() | ||
* deprecated Translator::setFallbackLocale() in favor of the new Translator::setFallbackLocale() method |
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.
There's an "s" missing at the end: "setFallbackLocale_s_"
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
shouldn't you make |
@stof: done |
* @api | ||
*/ | ||
public function setFallbackLocale($locales) | ||
{ | ||
$this->setFallbackLocales(is_array($locales) ? $locales : array($locales)) |
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.
(array) $locales
shoudn't you also update the place where the method is used (in FrameworkBundle probably) to use the non-deprecated one ? |
This PR was merged into the master branch. Commits ------- 0ef08f5 [Translator] fixed inconsistency in Translator Discussion ---------- [2.3] [Translator] fixed inconsistency in Translator | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a --------------------------------------------------------------------------- by stof at 2013-02-17T20:44:32Z shouldn't you make ``setFallbackLocale`` call ``setFallbackLocales`` ? --------------------------------------------------------------------------- by fabpot at 2013-02-18T14:04:39Z @stof: done --------------------------------------------------------------------------- by stof at 2013-02-18T14:18:10Z shoudn't you also update the place where the method is used (in FrameworkBundle probably) to use the non-deprecated one ?
I'm just experiencing an error (BC break?) with these changes. See https://travis-ci.org/craue/TwigExtensionsBundle/builds/5407380 |
…uration (refs symfony#7100, closes symfony#7315)
This PR was merged into the master branch. Commits ------- 44c8654 [FrameworkBundle] fixed regression for the translator fallback configuration (refs #7100, closes #7315) Discussion ---------- [FrameworkBundle] fixed regression for the translator fallback configuration (refs #7100, closes #7315) | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #7315 | License | MIT | Doc PR | n/a --------------------------------------------------------------------------- by craue at 2013-03-11T22:09:35Z :+1: