X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcollation%2FCollation.php;h=7659d6c4d50050e1b56e17f385baf0f2a6221a79;hb=f7e1770fb832aa77bf4e16ce8cc815f2b24dd10d;hp=fe254afdc561300bee413b9f4926b68825c6088e;hpb=81fddcf9e4ff1a66f107260628736788f4601e08;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/collation/Collation.php b/includes/collation/Collation.php index fe254afdc5..d009168d5e 100644 --- a/includes/collation/Collation.php +++ b/includes/collation/Collation.php @@ -46,9 +46,13 @@ abstract class Collation { * @return Collation */ public static function factory( $collationName ) { + global $wgContLang; + switch ( $collationName ) { case 'uppercase': return new UppercaseCollation; + case 'numeric': + return new NumericUppercaseCollation( $wgContLang ); case 'identity': return new IdentityCollation; case 'uca-default': @@ -59,9 +63,13 @@ abstract class Collation { return new CollationCkb; case 'xx-uca-et': return new CollationEt; + case 'xx-uca-fa': + return new CollationFa; + case 'uppercase-ba': + return new BashkirUppercaseCollation; default: $match = []; - if ( preg_match( '/^uca-([a-z@=-]+)$/', $collationName, $match ) ) { + if ( preg_match( '/^uca-([A-Za-z@=-]+)$/', $collationName, $match ) ) { return new IcuCollation( $match[1] ); }