diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-29 12:47:50 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-29 12:47:50 +0200 |
commit | 5dd865a57f5e769afb612428e739caff0ba1ea65 (patch) | |
tree | 3df7ed6204dea4772c3aeb5cffb1392d2a78e30f /apps/files_encryption/ajax | |
parent | efd629462e4a497c15804f55a5dfc231ee5be4bb (diff) | |
download | nextcloud-server-5dd865a57f5e769afb612428e739caff0ba1ea65.tar.gz nextcloud-server-5dd865a57f5e769afb612428e739caff0ba1ea65.zip |
changes l10n after review
Diffstat (limited to 'apps/files_encryption/ajax')
-rw-r--r-- | apps/files_encryption/ajax/adminrecovery.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_encryption/ajax/adminrecovery.php b/apps/files_encryption/ajax/adminrecovery.php index eb8bbfe43a2..915909515e7 100644 --- a/apps/files_encryption/ajax/adminrecovery.php +++ b/apps/files_encryption/ajax/adminrecovery.php @@ -16,7 +16,7 @@ use OCA\Encryption; $l = OC_L10N::get('files_encryption'); $return = false; - +$action = ''; // Enable recoveryAdmin $recoveryKeyId = OC_Appconfig::getValue('files_encryption', 'recoveryKeyId'); @@ -24,7 +24,7 @@ $recoveryKeyId = OC_Appconfig::getValue('files_encryption', 'recoveryKeyId'); if (isset($_POST['adminEnableRecovery']) && $_POST['adminEnableRecovery'] === "1") { $return = \OCA\Encryption\Helper::adminEnableRecovery($recoveryKeyId, $_POST['recoveryPassword']); - $action = "enable"; + $action = $l->t('enable'); // Disable recoveryAdmin } elseif ( @@ -32,17 +32,17 @@ if (isset($_POST['adminEnableRecovery']) && $_POST['adminEnableRecovery'] === "1 && "0" === $_POST['adminEnableRecovery'] ) { $return = \OCA\Encryption\Helper::adminDisableRecovery($_POST['recoveryPassword']); - $action = "disable"; + $action = $l->t('disable'); } // Return success or failure if ($return) { - \OCP\JSON::success(array("data" => array("message" => $l->t('Recovery key successfully ' . $action . 'd')))); + \OCP\JSON::success(array("data" => array("message" => $l->t('Recovery key successfully %sd', array($action))))); } else { \OCP\JSON::error(array( "data" => array( "message" => $l->t( - 'Could not ' . $action . ' recovery key. Please check your recovery key password!') + 'Could not %s recovery key. Please check your recovery key password!', array($action)) ) )); } |