/** * Returns the localized name based on the field's value. * Example: "de_DE" returns "Deutsch". * * @return String */ public function getNativeName() { $common_names = i18n::get_common_locales(true); return isset($common_names[$this->value]) ? $common_names[$this->value] : false; }