• FICHEIRO: /home/optica/library/Zend/Translate/Adapter.php
  • LINHA:    547
  • MENSAGEM: Undefined index: en
  •  543.         if ((empty($locale) === true) or ($this->isAvailable($locale) === false)) {
  •  544.             $locale = $this->_options['locale'];
  •  545.         }
  •  546.
  •  547.         return $this->_translate[(string) $locale];
  •  548.     }
  •  549.
  •  550.     /**
  •  551.      * Is the wished language available ?
  •  552.      *

  • FICHEIRO: /home/optica/library/Zend/Translate/Adapter.php
  • LINHA:    547
  •  543.         if ((empty($locale) === true) or ($this->isAvailable($locale) === false)) {
  •  544.             $locale = $this->_options['locale'];
  •  545.         }
  •  546.
  •  547.         return $this->_translate[(string) $locale];
  •  548.     }
  •  549.
  •  550.     /**
  •  551.      * Is the wished language available ?
  •  552.      *

  • FICHEIRO: /home/optica/library/Zend/Translate.php
  • LINHA:    219
  •  215.      */
  •  216.     public function __call($method, array $options)
  •  217.     {
  •  218.         if (method_exists($this->_adapter, $method)) {
  •  219.             return call_user_func_array(array($this->_adapter, $method), $options);
  •  220.         }
  •  221.         require_once 'Zend/Translate/Exception.php';
  •  222.         throw new Zend_Translate_Exception("Unknown method '" . $method . "' called!");
  •  223.     }
  •  224. }

  • FICHEIRO: /home/optica/library/Zend/Controller/Router/Route.php
  • LINHA:    227
  •  223.      */
  •  224.     public function match($path, $partial = false)
  •  225.     {
  •  226.         if ($this->_isTranslated) {
  •  227.             $translateMessages = $this->getTranslator()->getMessages();
  •  228.         }
  •  229.
  •  230.         $pathStaticCount = 0;
  •  231.         $values          = array();
  •  232.         $matchedPath     = '';

  • FICHEIRO: /home/optica/library/Zend/Controller/Router/Route.php
  • LINHA:    227
  •  223.      */
  •  224.     public function match($path, $partial = false)
  •  225.     {
  •  226.         if ($this->_isTranslated) {
  •  227.             $translateMessages = $this->getTranslator()->getMessages();
  •  228.         }
  •  229.
  •  230.         $pathStaticCount = 0;
  •  231.         $values          = array();
  •  232.         $matchedPath     = '';

  • FICHEIRO: /home/optica/library/Zend/Controller/Router/Rewrite.php
  • LINHA:    410
  •  406.             } else {
  •  407.                 $match = $request;
  •  408.             }
  •  409.
  •  410.             if ($params = $route->match($match)) {
  •  411.                 $this->_setRequestParams($request, $params);
  •  412.                 $this->_currentRoute = $name;
  •  413.                 $routeMatched        = true;
  •  414.                 break;
  •  415.             }

  • FICHEIRO: /home/optica/library/Zend/Controller/Front.php
  • LINHA:    911
  •  907.             */
  •  908.             $this->_plugins->routeStartup($this->_request);
  •  909.
  •  910.             try {
  •  911.                 $router->route($this->_request);
  •  912.             }  catch (Exception $e) {
  •  913.                 if ($this->throwExceptions()) {
  •  914.                     throw $e;
  •  915.                 }
  •  916.

  • FICHEIRO: /home/optica/library/Goweb/Application.php
  • LINHA:    456
  •  452.     }
  •  453.
  •  454.     public function runApp(){
  •  455.         $frontController = Zend_Controller_Front::getInstance();
  •  456.         $frontController->dispatch();
  •  457.     }
  •  458. }
  •  459.

  • FICHEIRO: /home/optica/public_html/index.php
  • LINHA:    54
  •  50. $application->initPainel();
  •  51. $lang = isset($_GET['lang']) ? $_GET['lang'] : null;
  •  52. $application->initLanguage($lang, true, false);
  •  53. $application->initLanguageAdmin(isset($_GET['lang']) ? $_GET['lang'] : null, true, true);
  •  54. $application->runApp();
  •  55.
  •  56.
  •  57. /**
  •  58.  * Efectua a traducao de uma string.
  •  59.  */