Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Mar 6, 2013

Conversation

fabpot
Copy link
Member

@fabpot 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
Copy link
Contributor

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_"

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

@stof
Copy link
Member

stof commented Feb 17, 2013

shouldn't you make setFallbackLocale call setFallbackLocales ?

@fabpot
Copy link
Member Author

fabpot commented Feb 18, 2013

@stof: done

* @api
*/
public function setFallbackLocale($locales)
{
$this->setFallbackLocales(is_array($locales) ? $locales : array($locales))
Copy link
Member

Choose a reason for hiding this comment

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

(array) $locales

@stof
Copy link
Member

stof commented Feb 18, 2013

shoudn't you also update the place where the method is used (in FrameworkBundle probably) to use the non-deprecated one ?

fabpot added a commit that referenced this pull request Mar 6, 2013
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 ?
@fabpot fabpot closed this Mar 6, 2013
@fabpot fabpot merged commit 0ef08f5 into symfony:master Mar 6, 2013
@craue
Copy link
Contributor

craue commented Mar 11, 2013

I'm just experiencing an error (BC break?) with these changes. See https://travis-ci.org/craue/TwigExtensionsBundle/builds/5407380

fabpot added a commit to fabpot/symfony that referenced this pull request Mar 11, 2013
@fabpot
Copy link
Member Author

fabpot commented Mar 11, 2013

@craue Can you check that #7334 fixes your issue?

fabpot added a commit that referenced this pull request Mar 11, 2013
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:
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.

5 participants