Skip to content

[FrameworkBundle][config] allow multiple fallback locales. #13376

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
Jan 25, 2015

Conversation

aitboudad
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets #13373
Doc PR symfony/symfony-docs#4834
Tests pass? yes
License MIT

@hacfi
Copy link
Contributor

hacfi commented Jan 12, 2015

👍

Not sure if this is considered bug fix or new feature though. We’ll see. Update to the docs also should be made.

@fabpot
Copy link
Member

fabpot commented Jan 14, 2015

I would consider it as a bug fix.

👍

@wouterj
Copy link
Member

wouterj commented Jan 15, 2015

Fyi, a PR to the docs is submitted

@stof
Copy link
Member

stof commented Jan 15, 2015

The XML schema needs to be updated to support multiple fallbacks too

@aitboudad
Copy link
Contributor Author

@stof done

@fabpot
Copy link
Member

fabpot commented Jan 16, 2015

While we are at it, what about allowing fallbacks as well like done for many other config items where we can have more than one items?

@stof
Copy link
Member

stof commented Jan 18, 2015

We should indeed have ->arrayNode('fallbacks') and a fixXmlConfig('fallback') on the parent

@aitboudad
Copy link
Contributor Author

done

<framework:fallback>fr</framework:fallback>
</framework:translator>
</framework:config>
</container>
Copy link
Member

Choose a reason for hiding this comment

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

This file does not seem to be used anywhere in the tests. Have you forgot to commit them? Tests should also be done for other formats like YAML.

@aitboudad
Copy link
Contributor Author

@fabpot I added the missing files.

@fabpot
Copy link
Member

fabpot commented Jan 25, 2015

Thank you @aitboudad.

@fabpot fabpot merged commit 1251f0e into symfony:2.3 Jan 25, 2015
fabpot added a commit that referenced this pull request Jan 25, 2015
… (aitboudad)

This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle][config] allow multiple fallback locales.

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Fixed tickets  | #13373
| Doc PR        | symfony/symfony-docs#4834
| Tests pass?   | yes
| License       | MIT

Commits
-------

1251f0e [FrameworkBundle][config] allow multiple fallback locales.
@aitboudad aitboudad deleted the issue_13373 branch January 25, 2015 14:19
@@ -206,6 +206,14 @@ public function testTranslator()
$this->assertEquals(array('fr'), $calls[0][1][0]);
}

public function testTranslatorMultipleFullback()

Choose a reason for hiding this comment

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

pondering why it's 'Fullback' and not 'Fallback'

Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind to submit a PR fixing this typo? :)

Copy link
Member

Choose a reason for hiding this comment

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

done in 87c0659

weaverryan added a commit to symfony/symfony-docs that referenced this pull request Mar 13, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

[translator] use the new fallbacks option.

| Q             | A
| ------------- | ---
| Doc fix?        | yes
| New docs?   | no
| Applies to     | all
| Fixed tickets | symfony/symfony#13376

Commits
-------

92194f2 [config][translator] use the new fallbacks option.
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.

7 participants