* @ingroup Language
*/
-require_once __DIR__ . '/../LanguageConverter.php';
-
/**
* There are two levels of conversion for Serbian: the script level
* (Cyrillics <-> Latin), and the variant level (ekavian
* names as they were
* - do not try to find variants for usernames
*
- * @param string $link
- * @param Title $nt
+ * @param string &$link
+ * @param Title &$nt
* @param bool $ignoreOtherCond
*/
function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) {
*/
class LanguageSr extends Language {
function __construct() {
- global $wgHooks;
-
parent::__construct();
$variants = array( 'sr', 'sr-ec', 'sr-el' );
'W' => 'W', 'реч' => 'W', 'reč' => 'W', 'ријеч' => 'W', 'riječ' => 'W'
);
$this->mConverter = new SrConverter( $this, 'sr', $variants, $variantfallbacks, $flags );
- $wgHooks['PageContentSaveComplete'][] = $this->mConverter;
}
}