* @param array $variantfallbacks
* @param array $flags
*/
- function __construct( $langobj, $maincode,
+ function __construct( Language $langobj, $maincode,
$variants = [],
$variantfallbacks = [],
$flags = [] ) {
$text = preg_replace( $pat, $rep, $text );
}
return $text;
- break;
case 'kk-latn':
case 'kk-tr':
foreach ( $this->mCyrl2Latn as $pat => $rep ) {
$text = preg_replace( $pat, $rep, $text );
}
return $text;
- break;
case 'kk-cyrl':
case 'kk-kz':
foreach ( $this->mLatn2Cyrl as $pat => $rep ) {
$text = preg_replace( $pat, $rep, $text );
}
return $text;
- break;
default:
return $text;
}