https://bugzilla.wikimedia.org/show_bug.cgi?id=32792
Web browser: ---
Bug #: 32792
Summary: Proofread Page extension inconsistently expects
escaped spaces in namespaces
Product: MediaWiki extensions
Version: any
Platform: All
URL: http://vi.wikisource.org/w/index.php?title=Mục_lục:Vie
t_Nam_Su_Luoc_1.djvu&&action=edit
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ProofreadPage
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
The Vietnamese localization of the Proofread Page extension uses "Mục lục" as
the index namespace. However, the extension sometimes expects the space to be
replaced with an underscore.
If the "proofreadpage index namespace" message is localized as "Mục lục", with
a space, then things like the "Source" tab and quality bar in the main
namespace break, because the following line in prepareArticle() in
ProofreadPage_body.php evaluates to null:
$index_ns_index = MWNamespace::getCanonicalIndex( strtolower(
$index_namespace ) );
On the other hand, if the "proofreadpage index namespace" message is localized
as "Mục_lục", with an underscore, the index page edit form breaks, because
expressions like the following in ProofreadPage_body.php evaluate to 0:
preg_match( "/^$index_namespace:(.*)$/", $ref_title->getPrefixedText() )
For instance, [[s:vi:MediaWiki:Proofreadpage index namespace]] is currently set
to "Mục_lục", but that causes the edit page for [[s:vi:Mục lục:Viet Nam Su Luoc
1.djvu]] to use the normal wiki editor.
It doesn't really matter which style the extension settles on, as long as it
treats "proofreadpage index namespace" and "proofreadpage page namespace"
consistently.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l