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>
/* 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
Version: unspecified
Severity: normal