38 $p = parent::validate( $value, $alldata );
44 if ( !isset( $this->mParams[
'valid-values'] ) ) {
48 if ( $value ===
'default' ) {
52 $codes = $this->tidy( $value );
53 $valid = array_flip( $this->mParams[
'valid-values'] );
55 foreach ( $codes as $code ) {
56 if ( !isset( $valid[$code] ) ) {
57 return wfMessage(
'translate-pref-editassistlang-bad', $code )->parseAsBlock();