]> source.dussan.org Git - nextcloud-server.git/commitdiff
committed patch (bug #967) to add missing translations for file actions
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 12 Jun 2012 09:39:03 +0000 (11:39 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 12 Jun 2012 09:41:13 +0000 (11:41 +0200)
apps/files/js/fileactions.js

index 0c672cd6708c28dbe7bcb0df87444030815c2b0a..7414c1f3395c0dbf4ca6d9fa468486d45c906a58 100644 (file)
@@ -71,7 +71,7 @@ FileActions={
                                }
                                var html='<a href="#" class="action" style="display:none">';
                                if(img) { html+='<img src="'+img+'"/> '; }
-                               html += name+'</a>';
+                               html += t('files', name) +'</a>';
                                var element=$(html);
                                element.data('action',name);
                                element.click(function(event){
@@ -91,7 +91,7 @@ FileActions={
                        if(img.call){
                                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);
                        if(img){
                                element.append($('<img src="'+img+'"/>'));