Merge pull request #19266 from owncloud/fileactions-translate-details

Properly translate file actions
This commit is contained in:
Thomas Müller 2015-09-22 15:56:04 +02:00
commit 0c93de5a65
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() {