view->getScriptPath('privacy'); $locale = Zend_Registry::get('Zend_Locale'); // render() changes _ to - $locale = str_replace('_', '-', $locale); $localeElements = explode('-', $locale); if (file_exists("$scriptsDir/index-$locale.phtml")) { $view = "index-$locale"; } else if (count($localeElements == 2) && file_exists("$scriptsDir/index-".$localeElements[0].".phtml")) { $view = 'index-'.$localeElements[0]; } else { $view = 'index-en'; } $this->render($view); } }