From 1abb97fe1b51f4188658c86754212b44c06fdb9a Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Tue, 03 May 2011 04:27:15 -0400 Subject: [PATCH] - Add 'uploadingmany' message translation --- program/steps/mail/compose.inc | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 3f23904..531e698 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -110,8 +110,8 @@ // add some labels to client $OUTPUT->add_label('nosubject', 'nosenderwarning', 'norecipientwarning', 'nosubjectwarning', 'cancel', 'nobodywarning', 'notsentwarning', 'notuploadedwarning', 'savingmessage', 'sendingmessage', - 'messagesaved', 'converting', 'editorwarning', 'searching', 'uploading', 'fileuploaderror', - 'autocompletechars'); + 'messagesaved', 'converting', 'editorwarning', 'searching', 'uploading', 'uploadingmany', + 'fileuploaderror', 'autocompletechars'); $OUTPUT->set_env('compose_id', $COMPOSE_ID); @@ -1148,6 +1148,8 @@ $max_postsize = parse_bytes(ini_get('post_max_size')); if ($max_postsize && $max_postsize < $max_filesize) $max_filesize = $max_postsize; + + $OUTPUT->set_env('max_filesize', $max_filesize); $max_filesize = show_bytes($max_filesize); $button = new html_inputfield(array('type' => 'button')); @@ -1172,6 +1174,8 @@ { $attrib['type'] = 'file'; $attrib['name'] = '_attachments[]'; + $attrib['multiple'] = 'multiple'; + $field = new html_inputfield($attrib); return $field->show(); } -- Gitblit v1.9.1