Properly translate file actions

This commit is contained in:
Vincent Petry 2015-09-22 14:52:52 +02:00
parent 67231ed9a7
commit a35144e961
4 changed files with 5 additions and 1 deletions

View file

@ -594,6 +594,7 @@
this.registerAction({
name: 'Rename',
displayName: t('files', 'Rename'),
mime: 'all',
permissions: OC.PERMISSION_UPDATE,
icon: function() {
@ -614,6 +615,7 @@
this.registerAction({
name: 'Delete',
displayName: t('files', 'Delete'),
mime: 'all',
// permission is READ because we show a hint instead if there is no permission
permissions: OC.PERMISSION_DELETE,

View file

@ -300,6 +300,7 @@
if (this._detailsView) {
this.fileActions.registerAction({
name: 'Details',
displayName: t('files', 'Details'),
mime: 'all',
icon: OC.imagePath('core', 'actions/details'),
permissions: OC.PERMISSION_READ,

View file

@ -78,7 +78,7 @@
// register "star" action
fileActions.registerAction({
name: 'Favorite',
displayName: 'Favorite',
displayName: t('files', 'Favorite'),
mime: 'all',
permissions: OC.PERMISSION_READ,
type: OCA.Files.FileActions.TYPE_INLINE,

View file

@ -59,6 +59,7 @@ OCA.Trashbin.App = {
fileActions.registerAction({
name: 'Delete',
displayName: t('files', 'Delete'),
mime: 'all',
permissions: OC.PERMISSION_READ,
icon: function() {