Fix #4504: Use site language for namespace name resolution

This commit is contained in:
Antoine Musso 2006-01-07 13:36:19 +00:00
parent a26d5a49d7
commit 90eab85ae3

View file

@ -1251,7 +1251,7 @@ END
* The necessary JavaScript code can be found in style/wikibits.js.
*/
function getEditToolbar() {
global $wgStylePath, $wgLang, $wgJsMimeType;
global $wgStylePath, $wgContLang, $wgJsMimeType;
/**
* toolarray an array of arrays which each include the filename of
@ -1301,14 +1301,14 @@ END
'key' => 'H'
),
array( 'image'=>'button_image.png',
'open' => '[['.$wgLang->getNsText(NS_IMAGE).":",
'open' => '[['.$wgContLang->getNsText(NS_IMAGE).":",
'close' => ']]',
'sample'=> wfMsg('image_sample'),
'tip' => wfMsg('image_tip'),
'key' => 'D'
),
array( 'image' =>'button_media.png',
'open' => '[['.$wgLang->getNsText(NS_MEDIA).':',
'open' => '[['.$wgContLang->getNsText(NS_MEDIA).':',
'close' => ']]',
'sample'=> wfMsg('media_sample'),
'tip' => wfMsg('media_tip'),