https://bugzilla.wikimedia.org/show_bug.cgi?id=40397
Web browser: ---
Bug #: 40397
Summary: Namespace translations can break core namspeaces
Product: MediaWiki extensions
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
If an entity namespace is set to a core namespace (e.g. to have items in the
main namespace, you would currently use define( 'WB_NS_DATA', NS_MAIN ) ), then
the namespace translations defined in Wikibase.i18n.namespace.php will
interfere with the core namespaces (in the example, "Data" would become the
preferred local prefix for the main namespace).
To avoid this, Wikibase should only provide translations for namespaces if they
are not existing core namespaces. A quick and dirty way to detect this is to
check whether the namespace ID is > 100.
Note that having non-trivial code in internationalization files is possible but
discouraged. The conditional necessary for the above check should be OK,
compare how LiquidThreads does this.
--
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