Summary: Special:Templates doesn´t look for localized category
                    entries in template body
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: SemanticForms

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(...):
1. use of MediaWiki global variable $wgContLang
2. replacement of the regexp with:

'/\[\[(Category|'.$wgContLang->getNsText(14).'):([\w ]*)/'

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are watching all bug changes.
Wikibugs-l mailing list

Reply via email to