I18n inside console

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

I18n inside console

Oscar Fanelli
Is it possibile to return the translator service inside the console?
Because if I do: $this->getServiceLocator()->get('translator') and I'm doing a Zend\Console\Request, it says that nothing is founded.

I need to translate some words.

Thanks

Reply | Threaded
Open this post in threaded view
|

Re: I18n inside console

robertboloc
UseĀ $this->getServiceLocator()->get('mvctranslator');


2013/6/22 Oscar Fanelli <[hidden email]>
Is it possibile to return the translator service inside the console?
Because if I do: $this->getServiceLocator()->get('translator') and I'm doing a Zend\Console\Request, it says that nothing is founded.

I need to translate some words.

Thanks