* @ingroup Language
*/
-require_once __DIR__ . '/../LanguageConverter.php';
-
/**
* @ingroup Language
*/
}
function translate( $text, $toVariant ) {
- if( $toVariant == 'uz-cyrl' ) {
+ if ( $toVariant == 'uz-cyrl' ) {
$text = str_replace( 'ye', 'е', $text );
$text = str_replace( 'Ye', 'Е', $text );
$text = str_replace( 'YE', 'Е', $text );
*/
class LanguageUz extends Language {
function __construct() {
- global $wgHooks;
parent::__construct();
$variants = array( 'uz', 'uz-latn', 'uz-cyrl' );
);
$this->mConverter = new UzConverter( $this, 'uz', $variants, $variantfallbacks );
- $wgHooks['PageContentSaveComplete'][] = $this->mConverter;
}
}