function __construct() { parent::__construct(); $variants = array('sr', 'sr-ec', 'sr-el'); $variantfallbacks = array('sr' => 'sr-ec', 'sr-ec' => 'sr', 'sr-el' => 'sr'); $flags = array('S' => 'S', 'писмо' => 'S', 'pismo' => 'S', 'W' => 'W', 'реч' => 'W', 'reč' => 'W', 'ријеч' => 'W', 'riječ' => 'W'); }
function __construct() { global $wgHooks; parent::__construct(); $variants = array('sr', 'sr-ec', 'sr-el'); $variantfallbacks = array('sr' => 'sr-ec', 'sr-ec' => 'sr', 'sr-el' => 'sr'); $flags = array('S' => 'S', 'писмо' => 'S', 'pismo' => 'S', 'W' => 'W', 'реч' => 'W', 'reč' => 'W', 'ријеч' => 'W', 'riječ' => 'W'); $this->mConverter = new SrConverter($this, 'sr', $variants, $variantfallbacks, $flags); $wgHooks['ArticleSaveComplete'][] = $this->mConverter; }
function __construct() { global $wgHooks; parent::__construct(); // these variants are currently UNUSED: // 'sr-jc', 'sr-jl' $variants = array('sr', 'sr-ec', 'sr-el'); $variantfallbacks = array('sr' => 'sr-ec', 'sr-ec' => 'sr-ec', 'sr-el' => 'sr-el'); $marker = array(); //don't mess with these, leave them as they are $flags = array('S' => 'S', 'писмо' => 'S', 'pismo' => 'S', 'W' => 'W', 'реч' => 'W', 'reč' => 'W', 'ријеч' => 'W', 'riječ' => 'W'); $this->mConverter = new SrConverter($this, 'sr', $variants, $variantfallbacks, $marker, $flags); $wgHooks['ArticleSaveComplete'][] = $this->mConverter; }