Properly translate file actions
This commit is contained in:
parent
67231ed9a7
commit
a35144e961
4 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -59,6 +59,7 @@ OCA.Trashbin.App = {
|
|||
|
||||
fileActions.registerAction({
|
||||
name: 'Delete',
|
||||
displayName: t('files', 'Delete'),
|
||||
mime: 'all',
|
||||
permissions: OC.PERMISSION_READ,
|
||||
icon: function() {
|
||||
|
|
Loading…
Reference in a new issue