diff options
Diffstat (limited to 'settings/ajax/decryptall.php')
-rw-r--r-- | settings/ajax/decryptall.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/settings/ajax/decryptall.php b/settings/ajax/decryptall.php index 4782a4cfc81..d12df230d41 100644 --- a/settings/ajax/decryptall.php +++ b/settings/ajax/decryptall.php @@ -12,6 +12,7 @@ $params = array('uid' => \OCP\User::getUser(), $view = new OC_FilesystemView('/'); $util = new \OCA\Encryption\Util($view, \OCP\User::getUser()); +$l = \OC_L10N::get('settings'); $result = $util->initEncryption($params); @@ -27,11 +28,11 @@ if ($result !== false) { $util->closeEncryptionSession(); if ($successful === true) { - \OCP\JSON::success(array('data' => array('message' => 'Files decrypted successfully'))); + \OCP\JSON::success(array('data' => array('message' => $l->t('Files decrypted successfully')))); } else { - \OCP\JSON::error(array('data' => array('message' => 'Couldn\'t decrypt your files, please check your owncloud.log or ask your administrator'))); + \OCP\JSON::error(array('data' => array('message' => $l->t('Couldn\'t decrypt your files, please check your owncloud.log or ask your administrator')))); } } else { - \OCP\JSON::error(array('data' => array('message' => 'Couldn\'t decrypt your files, check your password and try again'))); + \OCP\JSON::error(array('data' => array('message' => $l->t('Couldn\'t decrypt your files, check your password and try again')))); } |