https://bugzilla.wikimedia.org/show_bug.cgi?id=29396
Web browser: ---
Bug #: 29396
Summary: Proofread Page extension needs a way to select index
and page namespaces
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ProofreadPage
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
The namespaces used with the Proofread Page extension aren't defined by
canonical name or ID. This means that the names and IDs for the "Index" and
"Page" namespaces are different for each wiki, making it nearly impossible to
write tools for different Wikisources.
From
<http://en.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces|namespacealiases>:
<ns id="104" case="first-letter" canonical="Page"
xml:space="preserve">Page</ns>
<ns id="105" case="first-letter" canonical="Page talk"
xml:space="preserve">Page talk</ns>
<ns id="106" case="first-letter" canonical="Index"
xml:space="preserve">Index</ns>
<ns id="107" case="first-letter" canonical="Index talk"
xml:space="preserve">Index talk</ns>
From
<http://pt.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces|namespacealiases>:
<ns id="104" case="first-letter" subpages="" canonical="Galeria"
xml:space="preserve">Galeria</ns>
<ns id="105" case="first-letter" subpages="" canonical="Galeria
Discussão" xml:space="preserve">Galeria Discussão</ns>
<ns id="106" case="first-letter" subpages="" canonical="Página"
xml:space="preserve">Página</ns>
<ns id="107" case="first-letter" subpages="" canonical="Página Discussão"
xml:space="preserve">Página Discussão</ns>
From
<http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ProofreadPage/ProofreadPage_body.php?revision=87777&view=markup>:
/* Namespaces */
$this->page_namespace = preg_quote( wfMsgForContent(
'proofreadpage_namespace' ), '/' );
$this->index_namespace = preg_quote( wfMsgForContent(
'proofreadpage_index_namespace' ), '/' );
This is... bad. This bug is not about fixing the Proofread Page logic, though.
This bug is about providing an interface to select the appropriate Proofread
Page-related namespaces without having to use the "allmessages" API module
(<http://pt.wikisource.org/w/api.php?action=query&meta=allmessages&ammessages=proofreadpage_namespace|proofreadpage_index_namespace>),
which is an awful, awful hack.
Related bugs: bug 28893 and bug 28894
--
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.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l