application/modules/g/views/helpers/I18n.php
protected function _getRoutesWithFallback($language) {
        $routesFile = $this->view->config()->resources->router->routesFile->{$language};
        $config = new Garp_Config_Ini($routesFile, APPLICATION_ENV);
        
        if ($config->routes) {
            return $config->routes->toArray();
        } 
        
        $routesFile = $this->view->config()->resources->router->routesFile->generic;
        $config = new Garp_Config_Ini($routesFile, APPLICATION_ENV);
        return $config->routes->toArray();
    }
protected function _getRoutesWithFallback($language) {
        $routesFile = $this->view->config()->resources->router->routesFile->{$language};
        $config = new Garp_Config_Ini($routesFile, APPLICATION_ENV);
        
        if ($config->routes) {
            return $config->routes->toArray();
        } 
        
        $routesFile = $this->view->config()->resources->router->routesFile->generic;
        $config = new Garp_Config_Ini($routesFile, APPLICATION_ENV);
        return $config->routes->toArray();
    }
protected function _getRoutesWithFallback ( $ language ) { $ routesFile = $ this -> view -> config ( ) -> resources -> router -> routesFile -> { $ language } ; $ config = new Garp_Config_Ini ( $ routesFile , APPLICATION_ENV ) ; if ( $ config -> routes ) { return $ config -> routes -> toArray ( ) ; } $ routesFile = $ this -> view -> config ( ) -> resources -> router -> routesFile -> generic ; $ config = new Garp_Config_Ini ( $ routesFile , APPLICATION_ENV ) ; return $ config -> routes -> toArray ( ) ; }
Return generic routes if routes file from language is empty

@param string $language
@return array
Return generic routes if routes file from language is empty