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

Allowing translations to be easily extracted #212

Closed
wants to merge 1 commit into from
Closed

Allowing translations to be easily extracted #212

wants to merge 1 commit into from

Conversation

jjanvier
Copy link
Contributor

When extracting Core or Web bundles translations, we always face this exception :

   [Doctrine\Common\Annotations\AnnotationException]                                                                                                        
   [Semantical Error] The annotation "@Given" in method Behat\MinkExtension\Context \MinkContext::iAmOnHomepage() was never imported. Did you maybe forget to add a "use" statement for this annotation? 

As explained by everzet himself here https://github.com/Behat/MinkBundle/issues/29 this PR resolves, the problem.

AnnotationReader::addGlobalIgnoredName('When');
AnnotationReader::addGlobalIgnoredName('Then');
AnnotationReader::addGlobalIgnoredName('BeforeSuite');
AnnotationReader::addGlobalIgnoredName('AfterScenario');
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO this is not right place, mostly because it fails only for behat, not globally.

@umpirsky
Copy link
Contributor

Entire Behat directory can be ignored by adding ignore option when running
extract command.
On 29 Jun 2013 13:49, "Julien Janvier" notifications@github.com wrote:

When extracting Core or Web bundles translations, we always face this
exception :

[Doctrine\Common\Annotations\AnnotationException]
[Semantical Error] The annotation "@given" in method Behat\MinkExtension\Context \MinkContext::iAmOnHomepage() was never imported. Did you maybe forget to add a "use" statement for this annotation?

As explained by everzet himself here Behat/MinkBundle#29https://github.com/Behat/MinkBundle/issues/29this PR resolves, the problem.

You can merge this Pull Request by running

git pull https://github.com/jjanvier/Sylius translations

Or view, comment on, or merge it at:

#212
Commit Summary

  • Allowing translations to be easily extracted

File Changes

Patch Links:

@umpirsky
Copy link
Contributor

Maybe we should wrap extraction into single command to extract translations
for entire project.
On 29 Jun 2013 14:22, "Saša Stamenković" umpirsky@gmail.com wrote:

Entire Behat directory can be ignored by adding ignore option when running
extract command.
On 29 Jun 2013 13:49, "Julien Janvier" notifications@github.com wrote:

When extracting Core or Web bundles translations, we always face this
exception :

[Doctrine\Common\Annotations\AnnotationException]
[Semantical Error] The annotation "@given" in method Behat\MinkExtension\Context \MinkContext::iAmOnHomepage() was never imported. Did you maybe forget to add a "use" statement for this annotation?

As explained by everzet himself here Behat/MinkBundle#29https://github.com/Behat/MinkBundle/issues/29this PR resolves, the problem.

You can merge this Pull Request by running

git pull https://github.com/jjanvier/Sylius translations

Or view, comment on, or merge it at:

#212
Commit Summary

  • Allowing translations to be easily extracted

File Changes

Patch Links:

@jjanvier
Copy link
Contributor Author

@umpirsky I really like your solution. So I close this PR.

@jjanvier jjanvier closed this Jun 29, 2013
@sargath
Copy link

sargath commented Jun 30, 2013

@umpirsky I got a question about translations, I extracted translations from every bundle separately, should I then PR as separate translation for every bundle or put it to SyliusWebBundle , what's the strategy for them right now ?

@umpirsky
Copy link
Contributor

Bundles are independent, so separate PR for each is the way to go.
On 30 Jun 2013 12:57, "Sargath" notifications@github.com wrote:

@umpirsky https://github.com/umpirsky I got a question about
translations, I extracted translations from every bundle separately, should
I then PR as separate translation for every bundle or put it to
SyliusWebBundle , what's the strategy for them right now ?


Reply to this email directly or view it on GitHubhttps://github.com//pull/212#issuecomment-20245463
.

@jjanvier jjanvier deleted the translations branch July 8, 2013 19:49
pamil pushed a commit to pamil/Sylius that referenced this pull request Mar 21, 2016
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

4 participants