SHARE
TWEET

ZF-11546

a guest Jul 23rd, 2011 118 Never
  1. <?php
  2. set_include_path('/your_path/');
  3.  
  4. require_once 'Zend/Loader/Autoloader.php';
  5. Zend_Loader_Autoloader::getInstance();
  6.  
  7. $translator = new Zend_Translate(
  8.     array(
  9.         'adapter' => 'array',
  10.         'content' => './languages',
  11.         'locale' => 'pt_BR',
  12.         'scan' => Zend_Translate::LOCALE_DIRECTORY
  13.     )
  14. );
  15.  
  16. var_dump($translator->getMessages('all'));
RAW Paste Data
Top