committed patch (bug #967) to add missing translations for file actions

This commit is contained in:
Bjoern Schiessle 2012-06-12 11:39:03 +02:00
parent 1b6dd6628a
commit b38ce8adfd
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ FileActions={
} }
var html='<a href="#" class="action" style="display:none">'; var html='<a href="#" class="action" style="display:none">';
if(img) { html+='<img src="'+img+'"/> '; } if(img) { html+='<img src="'+img+'"/> '; }
html += name+'</a>'; html += t('files', name) +'</a>';
var element=$(html); var element=$(html);
element.data('action',name); element.data('action',name);
element.click(function(event){ element.click(function(event){
@ -91,7 +91,7 @@ FileActions={
if(img.call){ if(img.call){
img=img(file); img=img(file);
} }
var html='<a href="#" original-title="Delete" class="action delete" style="display:none" />'; var html='<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete" style="display:none" />';
var element=$(html); var element=$(html);
if(img){ if(img){
element.append($('<img src="'+img+'"/>')); element.append($('<img src="'+img+'"/>'));