Delete confirmation is translatable

This commit is contained in:
Paolo Tacconi 2014-06-25 12:07:36 +02:00
parent a2629258ae
commit dda949ee3b

View File

@ -1034,7 +1034,7 @@ class RedBrowser extends DAV\Browser\Plugin {
if($is_owner) { if($is_owner) {
$html .= "<td>" . (($size) ? $attachIcon : '') . "</td> $html .= "<td>" . (($size) ? $attachIcon : '') . "</td>
<td><a href=\"".$fileStorageUrl."/".$attachId."/edit\" title=\"".t('Edit')."\"><i class=\"icon-pencil btn btn-default\"></i></a></td> <td><a href=\"".$fileStorageUrl."/".$attachId."/edit\" title=\"".t('Edit')."\"><i class=\"icon-pencil btn btn-default\"></i></a></td>
<td><a href=\"".$fileStorageUrl."/".$attachId."/delete\" title=\"".t('Delete')."\" onclick=\"return confirm(".t('Are you sure you want to delete this item?').");\"><i class=\"icon-remove btn btn-default drop-icons\"></i></a></td>"; <td><a href=\"".$fileStorageUrl."/".$attachId."/delete\" title=\"".t('Delete')."\" onclick=\"return confirm('".t('Are you sure you want to delete this item?')."');\"><i class=\"icon-remove btn btn-default drop-icons\"></i></a></td>";
} }
else { else {
$html .= "<td></td><td></td><td></td>"; $html .= "<td></td><td></td><td></td>";