mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
added l10n support in apps/files_encryption/ajax/adminrecovery.php
This commit is contained in:
parent
7b07168c46
commit
adc930d9f9
1 changed files with 4 additions and 2 deletions
|
|
@ -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!'))));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue