src/Framework/BaseConsoleApplication.php
protected function configureService()
    {
        // Translations
        $this['locale_fallbacks'] = array('en_US');
        $this->register(new TranslationServiceProvider());

        $translator = $this['translator'];
        $translator->addLoader('yaml', new RecursiveYamlFileMessageLoader());

        $files = glob($this->getRootPath() .'/app/l10n/*.yml');
        foreach ($files as $filename) {
            $locale = str_replace('.yml', '', basename($filename));
            $translator->addResource('yaml', $filename, $locale);
        }
    }
protected function configureService()
    {
        // Translations
        $this['locale_fallbacks'] = array('en_US');
        $this->register(new TranslationServiceProvider());

        $translator = $this['translator'];
        $translator->addLoader('yaml', new RecursiveYamlFileMessageLoader());

        $files = glob($this->getRootPath() .'/app/l10n/*.yml');
        foreach ($files as $filename) {
            $locale = str_replace('.yml', '', basename($filename));
            $translator->addResource('yaml', $filename, $locale);
        }
    }
protected function configureService ( ) { // Translations $ this [ 'locale_fallbacks' ] = array ( 'en_US' ) ; $ this -> register ( new TranslationServiceProvider ( ) ) ; $ translator = $ this [ 'translator' ] ; $ translator -> addLoader ( 'yaml' , new RecursiveYamlFileMessageLoader ( ) ) ; $ files = glob ( $ this -> getRootPath ( ) . '/app/l10n/*.yml' ) ; foreach ( $ files as $ filename ) { $ locale = str_replace ( '.yml' , '' , basename ( $ filename ) ) ; $ translator -> addResource ( 'yaml' , $ filename , $ locale ) ; } }
Configure services.
Configure services .