Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as PHP by Henrik ( 14 years ago )
public function onBootstrap($e){
 $translator = $e->getApplication()->getServiceManager()->get('translator');
 $translator->addTranslationFilePattern('phparray', __DIR__ . '/../language','%s.php');
    }

    'translator' => array(
        'locale' => 'en_US',
        'translation_file_patterns' => array(
            array(
                'type'     => 'gettext',
                'base_dir' => __DIR__ . '/../language',
                'pattern'  => '%s.mo',
            ),
        ),
    ),

 

Revise this Paste

Parent: 56319
Children: 56322
Your Name: Code Language: