User "Brion VIBBER" posted a comment on MediaWiki.r90759. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90759#c18905 Commit summary:
Let $wgCategoryCollation take a class name as a value so that extensions can define new Collation classes. (I plan to commit such an extension shortly) Wasn't sure if it would be better to make an array mapping collation names => class names instead. However, that seemed to be unneededly complicated so I went with letting that variable take class names. Comment: Could also do this by adding a wfRunHooks call in Collation::factory to handle unknown names. This would let extensions add arbitrarily-named collations, including accepting parameters (maybe 'myfunkycollation:uppercase' to make something that piggybacks on top of another collation, or to accept a language-specific parameter). The extension can then pass whatever values it needs to the object constructor and simply return the object. _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
