Expose ICU version on Special:Version
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 13 Aug 2015 14:31:39 +0000 (16:31 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 13 Aug 2015 14:31:39 +0000 (16:31 +0200)
ICU (International Components for Unicode) <http://site.icu-project.org/>
is used to implement ordering of category members (category collation)
when $wgCategoryCollation is set to one of the supported "uca-xx" collations.
Its version determines whether the ordering will be correct for a number
of languages MediaWiki supports.

Change-Id: Id938a9510074f1743a57a840590cabcf3b90a103

includes/specials/SpecialVersion.php

index e598f0b..f6fa5ea 100644 (file)
@@ -215,6 +215,10 @@ class SpecialVersion extends SpecialPage {
                }
                $software[$dbr->getSoftwareLink()] = $dbr->getServerInfo();
 
+               if ( IcuCollation::getICUVersion() ) {
+                       $software['[http://site.icu-project.org/ ICU]'] = IcuCollation::getICUVersion();
+               }
+
                // Allow a hook to add/remove items.
                Hooks::run( 'SoftwareInfo', array( &$software ) );