summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/js
diff options
context:
space:
mode:
authorVolkan Gezer <volkangezer@gmail.com>2014-04-17 02:35:43 +0200
committerVolkan Gezer <volkangezer@gmail.com>2014-04-17 21:10:21 +0200
commitf434c3a2131c1e6e93471ced5877f4ac86d78837 (patch)
treed02e81f3a5832f876e502b83920ade6bbc261734 /apps/files_trashbin/js
parente68006c0ce13255bc4858d3a8191746c2c831b00 (diff)
downloadnextcloud-server-f434c3a2131c1e6e93471ced5877f4ac86d78837.tar.gz
nextcloud-server-f434c3a2131c1e6e93471ced5877f4ac86d78837.zip
Fix localization issues of files_trashbin
Diffstat (limited to 'apps/files_trashbin/js')
-rw-r--r--apps/files_trashbin/js/trash.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js
index 5cd49e19aaa..f7724d07d2b 100644
--- a/apps/files_trashbin/js/trash.js
+++ b/apps/files_trashbin/js/trash.js
@@ -30,7 +30,7 @@ $(document).ready(function() {
function removeCallback(result) {
if (result.status !== 'success') {
- OC.dialogs.alert(result.data.message, t('core', 'Error'));
+ OC.dialogs.alert(result.data.message, t('files_trashbin', 'Error'));
}
var files = result.data.success;
@@ -59,7 +59,7 @@ $(document).ready(function() {
},
removeCallback
);
- });
+ }, t('files_trashbin', 'Restore'));
};
FileActions.register('all', 'Delete', OC.PERMISSION_READ, function() {
@@ -121,7 +121,7 @@ $(document).ready(function() {
function(result) {
if (allFiles) {
if (result.status !== 'success') {
- OC.dialogs.alert(result.data.message, t('core', 'Error'));
+ OC.dialogs.alert(result.data.message, t('files_trashbin', 'Error'));
}
FileList.hideMask();
// simply remove all files
@@ -170,7 +170,7 @@ $(document).ready(function() {
function(result) {
if (allFiles) {
if (result.status !== 'success') {
- OC.dialogs.alert(result.data.message, t('core', 'Error'));
+ OC.dialogs.alert(result.data.message, t('files_trashbin', 'Error'));
}
FileList.hideMask();
// simply remove all files