summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorVolkan Gezer <volkangezer@gmail.com>2014-04-05 19:28:53 +0200
committerVolkan Gezer <volkangezer@gmail.com>2014-04-05 19:28:53 +0200
commit286323f7a41a783543a646e7f8c949bb9a402159 (patch)
treeec5f69e7b9b06b46a9682f7d2ccac2049d9ac1b6 /settings/ajax
parent2124eaba9296ebd9c491d71a266407d6b31cbd30 (diff)
downloadnextcloud-server-286323f7a41a783543a646e7f8c949bb9a402159.tar.gz
nextcloud-server-286323f7a41a783543a646e7f8c949bb9a402159.zip
Fix some localization issues with file encryption/decription strings
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/decryptall.php7
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'))));
}