Fix #4504: Use site language for namespace name resolution
This commit is contained in:
parent
a26d5a49d7
commit
90eab85ae3
1 changed files with 3 additions and 3 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue