This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

ZF-11546

By: a guest on Jul 23rd, 2011  |  syntax: PHP  |  size: 0.37 KB  |  views: 114  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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'));
clone this paste RAW Paste Data