* @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':
return new CollationCkb;
case 'xx-uca-et':
return new CollationEt;
+ case 'xx-uca-fa':
+ return new CollationFa;
default:
$match = [];
if ( preg_match( '/^uca-([a-z@=-]+)$/', $collationName, $match ) ) {