Changeset 112c9133 in github
- Timestamp:
- Oct 5, 2008 3:18:15 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 6afdd69
- Parents:
- 1bb6541
- Location:
- program
- Files:
-
- 7 edited
-
include/main.inc (modified) (2 diffs)
-
steps/addressbook/edit.inc (modified) (1 diff)
-
steps/addressbook/func.inc (modified) (1 diff)
-
steps/mail/compose.inc (modified) (2 diffs)
-
steps/mail/func.inc (modified) (2 diffs)
-
steps/mail/show.inc (modified) (2 diffs)
-
steps/settings/func.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
program/include/main.inc
rd6497f4 r112c9133 131 131 return $app->url((array)$p + array('_action' => $action, 'task' => $task)); 132 132 } 133 134 135 /**136 * Add a localized label to the client environment137 * @deprecated138 */139 function rcube_add_label()140 {141 global $OUTPUT;142 143 $arg_list = func_get_args();144 foreach ($arg_list as $i => $name)145 $OUTPUT->add_label($name);146 }147 133 148 134 … … 914 900 915 901 // add some labels to client 916 rcube_add_label('purgefolderconfirm'); 917 rcube_add_label('deletemessagesconfirm'); 902 $RCMAIL->output->add_label('purgefolderconfirm', 'deletemessagesconfirm'); 918 903 919 904 $type = $attrib['type'] ? $attrib['type'] : 'ul'; -
program/steps/addressbook/edit.inc
rf92aba3 r112c9133 44 44 45 45 // add some labels to client 46 rcube_add_label('noemailwarning'); 47 rcube_add_label('nonamewarning'); 46 $OUTPUT->add_label('noemailwarning', 'nonamewarning'); 48 47 49 48 list($form_start, $form_end) = get_form_tags($attrib); -
program/steps/addressbook/func.inc
r95fcc33 r112c9133 115 115 116 116 // add some labels to client 117 rcube_add_label('deletecontactconfirm');117 $OUTPUT->add_label('deletecontactconfirm'); 118 118 119 119 return $out; -
program/steps/mail/compose.inc
rcf6a833 r112c9133 82 82 83 83 // add some labels to client 84 rcube_add_label('nosubject', 'nosenderwarning', 'norecipientwarning', 'nosubjectwarning', 'nobodywarning', 'notsentwarning', 'savingmessage', 'sendingmessage', 'messagesaved', 'converting');84 $OUTPUT->add_label('nosubject', 'nosenderwarning', 'norecipientwarning', 'nosubjectwarning', 'nobodywarning', 'notsentwarning', 'savingmessage', 'sendingmessage', 'messagesaved', 'converting'); 85 85 86 86 // add config parameter to client script … … 478 478 JS_OBJECT_NAME), 'foot'); 479 479 480 rcube_add_label('checking');480 $OUTPUT->add_label('checking'); 481 481 $OUTPUT->set_env('spellcheck_langs', join(',', $editor_lang_set)); 482 482 } -
program/steps/mail/func.inc
ra862043 r112c9133 70 70 71 71 if (!$OUTPUT->ajax_call) 72 rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage');72 $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); 73 73 74 74 $OUTPUT->set_pagetitle(rcmail_localize_foldername($IMAP->get_mailbox_name())); 75 }76 else if ($RCMAIL->action == 'show')77 {78 // set current mailbox in client environment79 $OUTPUT->set_env('mailbox', $IMAP->get_mailbox_name());80 if ($CONFIG['trash_mbox'])81 $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']);82 if (!$OUTPUT->ajax_call)83 rcube_add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage');84 75 } 85 76 … … 100 91 101 92 // add some labels to client 102 rcube_add_label('from', 'to');93 $OUTPUT->add_label('from', 'to'); 103 94 104 95 // get message headers -
program/steps/mail/show.inc
r2cc1cac r112c9133 72 72 // give message uid to the client 73 73 $OUTPUT->set_env('uid', $MESSAGE->uid); 74 // set environement 74 75 $OUTPUT->set_env('safemode', $MESSAGE->is_safe); 75 76 $OUTPUT->set_env('sender', $MESSAGE->sender['string']); 76 77 $OUTPUT->set_env('permaurl', rcmail_url('show', array('_uid' => $MESSAGE->uid, '_mbox' => $mbox_name))); 77 78 $OUTPUT->set_env('mailbox', $mbox_name); 78 79 if ($CONFIG['trash_mbox']) 80 $OUTPUT->set_env('trash_mailbox', $CONFIG['trash_mbox']); 81 if (!$OUTPUT->ajax_call) 82 $OUTPUT->add_label('checkingmail', 'deletemessage', 'movemessagetotrash', 'movingmessage'); 83 79 84 // check for unset disposition notification 80 85 if ($MESSAGE->headers->mdn_to && … … 93 98 else if (empty($CONFIG['mdn_requests'])) 94 99 { 95 rcube_add_label('mdnrequest');100 $OUTPUT->add_label('mdnrequest'); 96 101 $OUTPUT->set_env('mdn_request', true); 97 102 } -
program/steps/settings/func.inc
r9b3d7f74 r112c9133 31 31 32 32 // add some labels to client 33 rcube_add_label('nopagesizewarning');33 $RCMAIL->output->add_label('nopagesizewarning'); 34 34 35 35 list($form_start, $form_end) = get_form_tags($attrib, 'save-prefs');
Note: See TracChangeset
for help on using the changeset viewer.
