summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-22 11:34:49 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-04-22 11:34:49 +0200
commit54873c7aae11212c93b4d08807bbd237da1cefd8 (patch)
treebe5d75f9ba37168da40e415fee18879c89cb5c86
parent5049664285b52bce13b6aa9bcab1d1c8cc25b08b (diff)
parentf434c3a2131c1e6e93471ced5877f4ac86d78837 (diff)
downloadnextcloud-server-54873c7aae11212c93b4d08807bbd237da1cefd8.tar.gz
nextcloud-server-54873c7aae11212c93b4d08807bbd237da1cefd8.zip
Merge pull request #8247 from owncloud/l10n-files_trasbin-fix
Fix localization issues of files_trashbin
-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