Author: u.baumbach
Description:
In SF_Templates.php function getCategoryDefinedByTemplate(...) looks for (least) category entry in each template body to show this as "defined category". Doing this a regex is used:
'/\[\[Category:([\w ]*)/'
So a potentially localized namespace name (in German "Kategorie:") cannot be found, only canonical "Category:"!
A solution might be:
In function getCategoryDefinedByTemplate(...):
- use of MediaWiki global variable $wgContLang
- replacement of the regexp with:
'/\[\[(Category|'.$wgContLang->getNsText(14).'):([\w ]*)/'
Version: unspecified
Severity: normal