summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Peter <github@florin-peter.de>2013-05-23 22:09:28 +0200
committerFlorin Peter <github@florin-peter.de>2013-05-23 22:09:28 +0200
commitadc930d9f934fab352f4b21d8aa3710ff9db239b (patch)
treec2f8ad74fbceb078a01363bd9fc1b3169d59b50d
parent7b07168c46d860583f112df4b25120be296b686d (diff)
downloadnextcloud-server-adc930d9f934fab352f4b21d8aa3710ff9db239b.tar.gz
nextcloud-server-adc930d9f934fab352f4b21d8aa3710ff9db239b.zip
added l10n support in apps/files_encryption/ajax/adminrecovery.php
-rw-r--r--apps/files_encryption/ajax/adminrecovery.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_encryption/ajax/adminrecovery.php b/apps/files_encryption/ajax/adminrecovery.php
index 306f0088be3..6d7953b5639 100644
--- a/apps/files_encryption/ajax/adminrecovery.php
+++ b/apps/files_encryption/ajax/adminrecovery.php
@@ -13,6 +13,8 @@ use OCA\Encryption;
\OCP\JSON::checkAppEnabled('files_encryption');
\OCP\JSON::callCheck();
+$l=OC_L10N::get('files_encryption');
+
$return = false;
// Enable recoveryAdmin
@@ -35,7 +37,7 @@ if (isset($_POST['adminEnableRecovery']) && $_POST['adminEnableRecovery'] == 1){
// Return success or failure
if ($return) {
- \OCP\JSON::success(array("data" => array( "message" => 'Recovery key successfully ' . $action.'d')));
+ \OCP\JSON::success(array("data" => array( "message" => $l->t('Recovery key successfully ' . $action.'d'))));
} else {
- \OCP\JSON::error(array("data" => array( "message" => 'Could not '.$action.' recovery key. Please check your recovery key password!')));
+ \OCP\JSON::error(array("data" => array( "message" => $l->t('Could not '.$action.' recovery key. Please check your recovery key password!'))));
}