From: Jens Frank Date: Thu, 5 Feb 2004 21:11:11 +0000 (+0000) Subject: BUG#889780 Insert picture button on new edit toolbar inserts localized Image:, e... X-Git-Tag: 1.3.0beta1~1018 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=1d8844545e85f21e034f1d47981dba1b5f4f8dba;p=lhc%2Fweb%2Fwiklou.git BUG#889780 Insert picture button on new edit toolbar inserts localized Image:, e.g. Bild: for de --- 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")),