From 25f4e4dfd5cf83c06089a1b34c4ab1ffc06c93f5 Mon Sep 17 00:00:00 2001 From: Matthew Wilson Date: Wed, 18 May 2005 20:05:42 +0000 Subject: [PATCH] [ 1203779 ] "Remove" Button in FileUploadControl not internationalized --- lib/WebGUI/Asset/Post.pm | 2 +- www/extras/FileUploadControl.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 818ce0377..c4ab3fd00 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -490,7 +490,7 @@ sub getUploadControl { $uploadControl .= 'images["'.$ext.'"] = "'.$session{config}{extrasURL}.'/fileIcons/'.$file.'";'."\n"; } } - $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images); + $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images, '.WebGUI::International::get('removeLabel','Probably the WebGUI Namespace would be best since this appears in several modules - post, filepile, form').'); uploader.addRow(); '; return $uploadControl; diff --git a/www/extras/FileUploadControl.js b/www/extras/FileUploadControl.js index cf6abf650..ce43e2c2f 100755 --- a/www/extras/FileUploadControl.js +++ b/www/extras/FileUploadControl.js @@ -2,7 +2,7 @@ //input. Each file upload input is named "file" the control must be rendered in a form. The //Workspace id is the id of the div in the html page to render the control in. -function FileUploadControl(workspaceId, imageArray) { +function FileUploadControl(workspaceId, imageArray, removeLabel) { this.images = images; this.fileLimit = fileLimit; @@ -18,7 +18,7 @@ function FileUploadControl(workspaceId, imageArray) { str +='' str += ''; - str +=''; + str +=''; str += '
';