Esempio n. 1
0
 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');
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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;
 }