Last modified: 2006-01-07 13:39:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 4504 - Editing toolbar inserts incorrect markup when user has a non-default language set
Editing toolbar inserts incorrect markup when user has a non-default language...
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-01-06 15:42 UTC by Rob Church
Modified: 2006-01-07 13:39 UTC (History)
0 users

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


Description Rob Church 2006-01-06 15:42:12 UTC
When a user has their preferences set to use a language other than the default
for the wiki, namespace names are translated into their language. However, this
means that the local namespace names for, e.g images, are not used, which causes

This was reported by a user in IRC:

Enderos-> well it's obvious isn't it, namespaces are translated but the wiki can
have only 1 namespace for it (default english) thus it don't work
Enderos-> like image = afbeelding in dutch
Enderos-> when you press the image button when editing using the dutch
translation, it puts a [[Afbeelding:blaat.gif]] but that doesn't work because
the wiki uses the english [[Image:blaat.gif]] namespace
Comment 1 Rob Church 2006-01-06 15:48:40 UTC
Solution to the problem as reported, therefore - tweak the PHP that generates
the JS which produces the editing toolbar so that it always uses the local
wiki's language, not the user's language.
Comment 2 Brion Vibber 2006-01-06 20:43:54 UTC
Just use {{ns:Image}} in the message, yes?
Comment 3 Antoine "hashar" Musso (WMF) 2006-01-07 13:39:52 UTC
Problem is that we used $wgLang instead of $wgContLang for
namespace resolution.

Fixed in HEAD and 1.5, will be in 1.5.6.

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