Changeset 620 for trunk/app/views/helpers
- Timestamp:
- 07/02/08 18:44:15 (5 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/helpers/gags.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/helpers/gags.php
r455 r620 14 14 public function confirmDel($id, $model) 15 15 { 16 $msg = __('Are you sure to want to delete this?', true); 17 $strB = $this->Form->create($model, array('action'=>'/admin_delete/'.$id, "onsubmit"=>"return confirm('".$msg."')")); 18 $strB .= $this->Form->end(__('Delete', true)); 16 19 17 $strB = $this->Form->create($model, array('action'=>'/admin_delete/'.$id, "onsubmit"=>"return confirm('Are you sure to delete?')")); 18 $strB .= $this->Form->end('Delete'); 19 20 return $strB; 20 return $strB; 21 21 } 22 22 … … 25 25 26 26 $strB = $this->Form->create($model, array('action'=>'admin_edit/'.$id)); 27 $strB .= $this->Form->end( 'Edit');27 $strB .= $this->Form->end(__('Edit', true)); 28 28 29 29 return $strB; … … 33 33 { 34 34 35 $status = ( $s == 1 ) ? 'Published' : 'Draft';35 $status = ( $s == 1 ) ? __('Published', true) : __('Draft', true); 36 36 37 37 return $status;
