Last modified: 2011-06-14 22:47:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31407, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29407 - JavaScript "NamespaceIds" doesn't include canonical namespaces
JavaScript "NamespaceIds" doesn't include canonical namespaces
Status: RESOLVED DUPLICATE of bug 25375
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.20.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-14 22:45 UTC by Krinkle
Modified: 2011-06-14 22:47 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2011-06-14 22:45:02 UTC
wgNamespaceIds in JavaScript doesn't include canonical namespaces.

They should be added in a similar way that Language->getNamespaceIds does it for the localized namespaces and the namespace aliases.

Currently problematic in UploadWizard's mw.Title constructor, when .setNamespace() is used with a canonical namespace on a non-English content-language wiki.

Example: On a German wiki "var foo = new mw.Title('bar').setNamespace('file')" will throw

Error: Unrecognized canonical namespace: file

...since wgNamespaceIds only contains localized namespaces + namespace aliases, not canonical ones (which is in contrary to the assumption that has been made in various places).

Assigning to myself, will be fixed together with bug 29397 (integrate mw.Title in core)
Comment 1 Krinkle 2011-06-14 22:47:00 UTC

*** This bug has been marked as a duplicate of bug 25375 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links