public $mUnidtable = [];// array of the translation in each variant
/**
- * Constructor
- *
* @param string $text The text between -{ and }-
* @param LanguageConverter $converter
*/
if ( $disp === false && array_key_exists( $variant, $unidtable ) ) {
$disp = array_values( $unidtable[$variant] )[0];
}
- // or display frist text under disable manual convert
+ // or display first text under disable manual convert
if ( $disp === false && $this->mConverter->mManualLevel[$variant] == 'disable' ) {
if ( count( $bidtable ) > 0 ) {
$disp = array_values( $bidtable )[0];
/**
* Parse rules and flags.
- * @param string $variant Variant language code
+ * @param string|null $variant Variant language code
*/
public function parse( $variant = null ) {
if ( !$variant ) {