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

[ResourceBundle] check translations are possible before configuration them #3749

Merged
merged 2 commits into from
Dec 18, 2015

Conversation

bendavies
Copy link
Contributor

I am not using translations in my application, and an error is thrown here as I've not configured translations for my resources.
This was introduced by #3721.

Also, it seems it is not not possible to disable translations per resource, see here.

@bendavies
Copy link
Contributor Author

just noticed this is related to #3748

@liverbool
Copy link
Contributor

I thinks it's not comprehensive fix as you said

"it seems it is not not possible to disable translations per resource"

It still can't disable translation per resource.

@bendavies
Copy link
Contributor Author

yes there are 2 issues here.

  1. translations should not be mandatory.
  2. don't try to configure translations at all if the Translation bundle is not available

I've updated the PR

pjedrzejewski pushed a commit that referenced this pull request Dec 18, 2015
[ResourceBundle] check translations are possible before configuration them
@pjedrzejewski pjedrzejewski merged commit 7ec0d9f into Sylius:master Dec 18, 2015
@pjedrzejewski
Copy link
Member

Sounds good until we figure out what to do with coupling. :) Thank you very much Ben! 👍

@bendavies
Copy link
Contributor Author

thanks @pjedrzejewski

@pjedrzejewski
Copy link
Member

@bendavies Let me know what do you think in #3750.

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