Skip to content
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

Locale bundle #1670

Merged
merged 4 commits into from
Jul 2, 2014
Merged

Locale bundle #1670

merged 4 commits into from
Jul 2, 2014

Conversation

pjedrzejewski
Copy link
Member

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

Extracted locales management stuff from core to separate component + bundle.
Added ability to switch the language in the frontend.

That's the first step for making Sylius fully i18n. I want the Locale component to support multiple areas, so that you can have different lang in backend/frontend or per store.

@pjedrzejewski
Copy link
Member Author

Should be merged after #1490.

@arnolanglade
Copy link
Contributor

Huge PR, it is quite difficult to review it :)

@stloyd
Copy link
Contributor

stloyd commented Jun 30, 2014

@Arn0d This are two PRs in one :) Just last commit belongs to this PR in fact...

@arnolanglade
Copy link
Contributor

ok 👶 !

@pjedrzejewski
Copy link
Member Author

Yup, @stloyd is right. :)

{
$this->getLocaleContext()->setLocale($locale);

return $this->redirect($request->headers->get('referer'));
Copy link
Contributor

Choose a reason for hiding this comment

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

You should check it has this header...

pjedrzejewski pushed a commit that referenced this pull request Jul 2, 2014
@pjedrzejewski pjedrzejewski merged commit 43a4b57 into Sylius:master Jul 2, 2014
@pjedrzejewski pjedrzejewski deleted the locale-bundle branch July 2, 2014 10:50
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.

None yet

3 participants