private function _initAvailable() { $available = $this->enableRegionalLocales ? isset($this->customAvailableLocales) && !empty($this->customAvailableLocales) ? $this->customAvailableLocales : LanguageHelper::available() : (isset($this->customPrimaryLocales) && !empty($this->customPrimaryLocales) ? $this->customPrimaryLocales : LanguageHelper::primary()); foreach ($available as $locale) { if (!isset($this->_data[$locale])) { $this->_data[$locale] = self::setupAvailableRecord($locale); } } }
public function actionAvailable() { $this->stdout(implode(', ', LanguageHelper::available()) . "\n"); return 0; }