Changeset 15646
- Timestamp:
- 03/16/08 13:02:40 (6 months ago)
- Files:
-
- trunk/midcom/midcom.helper.datamanager2/locale/default.de.txt (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/locale/default.en.txt (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/static/chooser/jquery.chooser_widget.js (modified) (1 diff)
- trunk/midcom/midcom.helper.datamanager2/widget/images.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.datamanager2/locale/default.de.txt
r15255 r15646 121 121 ---STRINGEND 122 122 123 ---STRING add new file 124 Neue Datei hinzufÃŒgen 125 ---STRINGEND 126 123 127 ---STRING upload image 124 128 Bild hochladen trunk/midcom/midcom.helper.datamanager2/locale/default.en.txt
r15255 r15646 149 149 ---STRINGEND 150 150 151 ---STRING add new file 152 Add a new file 153 ---STRINGEND 154 151 155 ---STRING upload image 152 156 Upload image trunk/midcom/midcom.helper.datamanager2/static/chooser/jquery.chooser_widget.js
r15394 r15646 867 867 formatted = ' '; 868 868 } 869 869 870 870 return formatted; 871 871 } trunk/midcom/midcom.helper.datamanager2/widget/images.php
r15585 r15646 26 26 * <b>Available configuration options:</b> 27 27 * 28 * - set_name_and_title_on_upload use this if you want the user to be able to set the 29 * filename and title when uploading a form. 30 * - integer max_count Maximum number of images allowed for a field. Set this 28 * - set_name_and_title_on_upload use this if you want the user to be able to set the 29 * filename and title when uploading a form. 30 * - integer max_count Maximum number of images allowed for a field. Set this 31 31 * 32 32 * <b>Implementation notes:</b> … … 78 78 /** 79 79 * Should the user be able to set the filename and title on upload? 80 * If so , set this to true. 80 * If so , set this to true. 81 81 * @var boolean 82 82 */ … … 85 85 /** 86 86 * Maximum amount of images allowed to be stored in the same field 87 * 87 * 88 88 * @access public 89 89 * @var integer … … 118 118 return true; 119 119 } 120 120 121 121 function _get_filename_validation_script() 122 122 { … … 135 135 } 136 136 } 137 137 138 138 END; 139 139 } … … 181 181 return; 182 182 } 183 183 184 184 // Filename column 185 185 $html = "<tr >\n" . … … 221 221 'id' => "{$this->_namespace}{$this->name}_e_new_upload", 222 222 ); 223 223 224 224 $this->_elements['e_new_upload'] =& HTML_QuickForm::createElement('submit', "{$this->name}_e_new_upload", $this->_l10n->get('upload file'), $attributes); 225 225 } … … 243 243 return; 244 244 } 245 245 246 246 // Filename column 247 247 $html = "<tr >\n" . 248 248 "<td class='new text' colspan='1'>"; 249 $html .= sprintf("%s:", $this->_l10n->get(' Add new file'));249 $html .= sprintf("%s:", $this->_l10n->get('add new file')); 250 250 $this->_elements['s_new_filename'] =& HTML_QuickForm::createElement('static', 's_new_filename', '', $html); 251 251 252 252 if (! $frozen) 253 253 { … … 399 399 ); 400 400 $this->_elements["e_exist_{$identifier}_upload"] =& HTML_QuickForm::createElement('submit', "{$this->name}_e_exist_{$identifier}_upload", $this->_l10n->get('replace file'), $attributes); 401 401 402 402 $attributes = Array 403 403 ( … … 455 455 $this->_add_image_row($identifier, $frozen); 456 456 } 457 if ($this->set_name_and_title_on_upload) 457 if ($this->set_name_and_title_on_upload) 458 458 { 459 459 $this->_add_new_upload_row_old($frozen); … … 502 502 } 503 503 504 504 505 505 if ( array_key_exists('e_new_title', $values) 506 506 && !empty($values['e_new_title'])) … … 512 512 $title = $file['name']; 513 513 } 514 514 515 515 if ( array_key_exists('e_new_filename', $values) 516 516 && !empty($values['e_new_filename'])) … … 570 570 $title = $values["e_exist_{$identifier}_title"]; 571 571 $filename = $this->_type->images[$identifier]['main']['filename']; 572 572 573 573 if (! $title) 574 574 { 575 575 $title = $filename; 576 576 } 577 577 578 578 if (! $this->_type->update_image($identifier, $filename, $file['tmp_name'], $title)) 579 579 {
