Ejemplo n.º 1
0
 public function execute()
 {
     //		$iso = Common::getGet('iso', 'en');
     //		if (false === ($lang = GWF_Language::getByISO($iso))) {
     //			$lang = GWF_Language::getEnglish();
     //		}
     GWF3::setConfig('store_last_url', false);
     $lang = GWF_Language::getCurrentLanguage();
     return $this->templateFeed($lang);
 }
Ejemplo n.º 2
0
 public static function select($name = 'lang_switch')
 {
     $current = GWF_Language::getCurrentLanguage();
     $langs = GWF_Language::getSupported();
     $data = array();
     foreach ($langs as $lang) {
         $lang instanceof GWF_Language;
         $data[] = array($lang->getISO(), $lang->getVar('lang_name'));
     }
     return GWF_Select::display($name, $data, $current->getISO(), self::getOnChange());
 }