translate rename and history actions

This commit is contained in:
scambra 2012-09-21 12:30:13 +02:00
parent d5211f9615
commit 107b641708
2 changed files with 4 additions and 3 deletions

View File

@ -179,6 +179,7 @@ FileActions.register('all','Delete', OC.PERMISSION_DELETE, function(){return OC.
$('.tipsy').remove();
});
// t('files', 'Rename')
FileActions.register('all','Rename', OC.PERMISSION_UPDATE, function(){return OC.imagePath('core','actions/rename');},function(filename){
FileList.rename(filename);
});

View File

@ -10,10 +10,10 @@ $(document).ready(function() {
$(document).ready(function(){
if (typeof FileActions !== 'undefined') {
// Add history button to files/index.php
// Add history button to 'files/index.php'
FileActions.register(
'file'
,'History'
, t('files_versions', 'History')
, OC.PERMISSION_UPDATE
, function() {
// Specify icon for hitory button
@ -147,4 +147,4 @@ $(this).click(
}
);
);