From eb1c9f05644b0e49dc7f62b64e6ecbb5d0be85a6 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 18 May 2005 21:19:50 +0000 Subject: [PATCH] internationalize remove button for upload controls --- lib/WebGUI/Asset/FilePile.pm | 2 +- lib/WebGUI/Asset/Post.pm | 2 +- lib/WebGUI/Form.pm | 2 +- lib/WebGUI/i18n/English/WebGUI.pm | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Asset/FilePile.pm b/lib/WebGUI/Asset/FilePile.pm index 24ff5b9b9..023de9467 100644 --- a/lib/WebGUI/Asset/FilePile.pm +++ b/lib/WebGUI/Asset/FilePile.pm @@ -218,7 +218,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','WebGUI').'); uploader.addRow(); '; return $uploadControl; diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index c4ab3fd00..33fb9c28b 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, '.WebGUI::International::get('removeLabel','Probably the WebGUI Namespace would be best since this appears in several modules - post, filepile, form').'); + $uploadControl .= 'var uploader = new FileUploadControl("fileUploadControl", images, '.WebGUI::International::get('removeLabel','WebGUI').'); uploader.addRow(); '; return $uploadControl; diff --git a/lib/WebGUI/Form.pm b/lib/WebGUI/Form.pm index b15658930..7b15f4cc2 100644 --- a/lib/WebGUI/Form.pm +++ b/lib/WebGUI/Form.pm @@ -833,7 +833,7 @@ sub files { $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','WebGUI').'); uploader.addRow(); '; return $uploadControl; diff --git a/lib/WebGUI/i18n/English/WebGUI.pm b/lib/WebGUI/i18n/English/WebGUI.pm index dff0d4a28..386dc94de 100644 --- a/lib/WebGUI/i18n/English/WebGUI.pm +++ b/lib/WebGUI/i18n/English/WebGUI.pm @@ -1316,6 +1316,11 @@ will be modified to make it unique.|, lastUpdated => 1047838780 }, + 'removeLabel' => { + message => q|remove|, + lastUpdated => 1116450882 + }, + '72' => { message => q|recover|, lastUpdated => 1031514049