summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-09-22 14:52:52 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-22 14:52:52 +0200
commita35144e961a55e2a5ca45d84b190156898e07c35 (patch)
tree76509747c55ec2f0e8cc2b232619cb3b073ff237 /apps/files/js
parent67231ed9a75eafe5b417e4525e3d80b1a3f8826b (diff)
downloadnextcloud-server-a35144e961a55e2a5ca45d84b190156898e07c35.tar.gz
nextcloud-server-a35144e961a55e2a5ca45d84b190156898e07c35.zip
Properly translate file actions
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/fileactions.js2
-rw-r--r--apps/files/js/filelist.js1
-rw-r--r--apps/files/js/tagsplugin.js2
3 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index f3f137a0537..d3904f2f6d3 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -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,
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 2af5be73d96..ece330d41cc 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -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,
diff --git a/apps/files/js/tagsplugin.js b/apps/files/js/tagsplugin.js
index 9f45da9a6e2..23945d52603 100644
--- a/apps/files/js/tagsplugin.js
+++ b/apps/files/js/tagsplugin.js
@@ -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,