summaryrefslogtreecommitdiffstats
path: root/settings
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
parent2124eaba9296ebd9c491d71a266407d6b31cbd30 (diff)
downloadnextcloud-server-286323f7a41a783543a646e7f8c949bb9a402159.tar.gz
nextcloud-server-286323f7a41a783543a646e7f8c949bb9a402159.zip
Fix some localization issues with file encryption/decription strings
Diffstat (limited to 'settings')
-rw-r--r--settings/ajax/decryptall.php7
-rw-r--r--settings/js/personal.js2
2 files changed, 5 insertions, 4 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'))));
}
diff --git a/settings/js/personal.js b/settings/js/personal.js
index f502037cfda..b659d1f1d39 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -313,7 +313,7 @@ OC.Encryption.msg={
startDecrypting:function(selector){
var spinner = '<img src="'+ OC.imagePath('core', 'loading-small.gif') +'">';
$(selector)
- .html( t('files_encryption', 'Decrypting files... Please wait, this can take some time.') + ' ' + spinner )
+ .html( t('settings', 'Decrypting files... Please wait, this can take some time.') + ' ' + spinner )
.removeClass('success')
.removeClass('error')
.stop(true, true)