Last modified: 2006-01-07 13:39:52 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 T6504, the corresponding Phabricator task for complete and up-to-date bug report information.
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...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
problems.

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.


Navigation
Links