Skip to content
Snippets Groups Projects
Commit 107b6417 authored by scambra's avatar scambra
Browse files

translate rename and history actions

parent d5211f96
Branches
No related tags found
No related merge requests found
...@@ -179,6 +179,7 @@ FileActions.register('all','Delete', OC.PERMISSION_DELETE, function(){return OC. ...@@ -179,6 +179,7 @@ FileActions.register('all','Delete', OC.PERMISSION_DELETE, function(){return OC.
$('.tipsy').remove(); $('.tipsy').remove();
}); });
// t('files', 'Rename')
FileActions.register('all','Rename', OC.PERMISSION_UPDATE, function(){return OC.imagePath('core','actions/rename');},function(filename){ FileActions.register('all','Rename', OC.PERMISSION_UPDATE, function(){return OC.imagePath('core','actions/rename');},function(filename){
FileList.rename(filename); FileList.rename(filename);
}); });
......
...@@ -10,10 +10,10 @@ $(document).ready(function() { ...@@ -10,10 +10,10 @@ $(document).ready(function() {
$(document).ready(function(){ $(document).ready(function(){
if (typeof FileActions !== 'undefined') { if (typeof FileActions !== 'undefined') {
// Add history button to files/index.php // Add history button to 'files/index.php'
FileActions.register( FileActions.register(
'file' 'file'
,'History' , t('files_versions', 'History')
, OC.PERMISSION_UPDATE , OC.PERMISSION_UPDATE
, function() { , function() {
// Specify icon for hitory button // Specify icon for hitory button
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment