You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
From what I have been able to read we were supposed to be able to define a default translation for the default language for a translator->trans call as
$translator ->trans( /** @Desc("We have changed the permalink because the post '{slug}' already exists.") */ 'post.form.permalink.error.exists', array('{slug}' => $slug), 'FooBundle');
This doesn't work, since the "Desc" object is connected to the translation argument, and the BaseVisitor only looks for comments of the translator element.
This setup works though /** @Desc("We have changed the permalink because the post '{slug}' already exists.") */ $this->translator ->trans( 'post.form.permalink.error.exists', array('{slug}' => $slug), 'FooBundle');
But if the object was to match the setup from JMSTransaltorBundle as described in #56 it needs to be the other way around.
The text was updated successfully, but these errors were encountered:
Hi
From what I have been able to read we were supposed to be able to define a default translation for the default language for a translator->trans call as
$translator ->trans( /** @Desc("We have changed the permalink because the post '{slug}' already exists.") */ 'post.form.permalink.error.exists', array('{slug}' => $slug), 'FooBundle');
This doesn't work, since the "Desc" object is connected to the translation argument, and the BaseVisitor only looks for comments of the translator element.
This setup works though
/** @Desc("We have changed the permalink because the post '{slug}' already exists.") */ $this->translator ->trans( 'post.form.permalink.error.exists', array('{slug}' => $slug), 'FooBundle');
But if the object was to match the setup from JMSTransaltorBundle as described in #56 it needs to be the other way around.
The text was updated successfully, but these errors were encountered: