コード例 #1
0
ファイル: LanguageSr.php プロジェクト: omarjedhxxx44/croptool
 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');
 }
コード例 #2
0
ファイル: LanguageSr.php プロジェクト: GodelDesign/Godel
 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;
 }
コード例 #3
0
ファイル: LanguageSr.php プロジェクト: puring0815/OpenKore
 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;
 }