https://bugzilla.wikimedia.org/show_bug.cgi?id=22318
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
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l