From 1d8844545e85f21e034f1d47981dba1b5f4f8dba Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Thu, 5 Feb 2004 21:11:11 +0000 Subject: [PATCH] BUG#889780 Insert picture button on new edit toolbar inserts localized Image:, e.g. Bild: for de --- includes/Skin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 7cfe75bf4d..61b2dd8ed5 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2232,7 +2232,7 @@ class Skin { // The necsesary JavaScript code can be found in style/wikibits.js. function getEditToolbar() { - global $wgUploadPath; + global $wgUploadPath,$wgLang; // toolarray an array of arrays which each include the filename of // the button image (without path), the opening tag, the closing tag, @@ -2266,12 +2266,12 @@ class Skin { "sample"=>wfMsg("headline_sample"), "tip"=>wfMsg("headline_tip")), array( "image"=>"button_image.gif", - "open"=>"[[Image:", + "open"=>"[[".$wgLang->getNsText(NS_IMAGE).":", "close"=>"]]", "sample"=>wfMsg("image_sample"), "tip"=>wfMsg("image_tip")), array( "image"=>"button_media.gif", - "open"=>"[[Media:", + "open"=>"[[".$wgLang->getNsText(NS_MEDIA).":", "close"=>"]]", "sample"=>wfMsg("media_sample"), "tip"=>wfMsg("media_tip")), -- 2.20.1