aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Collation.php
diff options
context:
space:
mode:
authorMatmaRex <matma.rex@gmail.com>2013-02-26 22:13:51 +0100
committerGerrit Code Review <gerrit@wikimedia.org>2013-02-26 22:18:36 +0000
commit0c28ca142245a8993f4409d7adab20c04752ca2a (patch)
treee3654aadf491bfd7915da2cc331c7e4ffa4f2503 /includes/Collation.php
parenta67fefd2b8ae19095cd42b69447a193cf3e03db9 (diff)
downloadmediawikicore-0c28ca142245a8993f4409d7adab20c04752ca2a.tar.gz
mediawikicore-0c28ca142245a8993f4409d7adab20c04752ca2a.zip
Revert "(bug 29788) Swedish Collation (uppercase-sv). Swaps Ä and Æ"
This workaround is unnecessary now that I838484b9 was merged. This reverts commit 13dc8ff88f48e0bb18750f5e98d50cdb8057c0d3. Change-Id: I2cd22ad87eb7a56c5742b20c6089a4b8607e5614
Diffstat (limited to 'includes/Collation.php')
-rw-r--r--includes/Collation.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/includes/Collation.php b/includes/Collation.php
index f57a14a274cc..87afc103a6b8 100644
--- a/includes/Collation.php
+++ b/includes/Collation.php
@@ -43,8 +43,6 @@ abstract class Collation {
switch( $collationName ) {
case 'uppercase':
return new UppercaseCollation;
- case 'uppercase-sv':
- return new UppercaseSvCollation;
case 'identity':
return new IdentityCollation;
case 'uca-default':
@@ -128,22 +126,6 @@ class UppercaseCollation extends Collation {
}
/**
- * Like UppercaseCollation but swaps Ä and Æ.
- *
- * This provides an ordering suitable for Swedish.
- * @author Lejonel
- */
-class UppercaseSvCollation extends UppercaseCollation {
-
- /* Unicode code point order is ÄÅÆÖ, Swedish order is ÅÄÖ and Æ is often sorted as Ä.
- * Replacing Ä for Æ should give a better collation. */
- function getSortKey( $string ) {
- $uppercase = $this->lang->uc( $string );
- return strtr( $uppercase, array( 'Ä' => 'Æ', 'Æ' => 'Ä' ) );
- }
-}
-
-/**
* Collation class that's essentially a no-op.
*
* Does sorting based on binary value of the string.