Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     $variants = array('gan', 'gan-hans', 'gan-hant');
     $variantfallbacks = array('gan' => array('gan-hans', 'gan-hant'), 'gan-hans' => array('gan'), 'gan-hant' => array('gan'));
     $ml = array('gan' => 'disable');
     $this->mConverter = new GanConverter($this, 'gan', $variants, $variantfallbacks, array(), $ml);
 }
Exemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     $variants = ['gan', 'gan-hans', 'gan-hant'];
     $variantfallbacks = ['gan' => ['gan-hans', 'gan-hant'], 'gan-hans' => ['gan'], 'gan-hant' => ['gan']];
     $ml = ['gan' => 'disable'];
     $this->mConverter = new GanConverter($this, 'gan', $variants, $variantfallbacks, [], $ml);
 }
Exemplo n.º 3
0
 function __construct()
 {
     parent::__construct();
     $variants = array('gan', 'gan-hans', 'gan-hant');
     $variantfallbacks = array('gan' => array('gan-hans', 'gan-hant'), 'gan-hans' => array('gan'), 'gan-hant' => array('gan'));
     $ml = array('gan' => 'disable');
     $this->mConverter = new GanConverter($this, 'gan', $variants, $variantfallbacks, array(), $ml);
     $wgHooks['ArticleSaveComplete'][] = $this->mConverter;
 }