/** * gets list of locale folders inside default language directory * * @param boolean $showInCodeLanguage true to show a code's name in the language the code represents * * @return array */ public static function getLocaleList($showInCodeLanguage = false) { return \Xoops\Core\Lists\Locale::getList($showInCodeLanguage); }
/** * Constructor * * @param mixed $caption Caption or array of all attributes * @param string $name name * @param mixed $value Pre-selected value (or array of them). Valid value is * any name of a XOOPS_ROOT_PATH."/locale/" subdirectory. * @param integer $size Number of rows. "1" makes a drop-down-list. */ public function __construct($caption, $name = null, $value = null, $size = 1) { parent::__construct($caption, $name, $value, $size); \Xoops\Core\Lists\Locale::setOptionsArray($this); $this->setClass('span4'); }