]> source.dussan.org Git - nextcloud-server.git/commitdiff
added l10n support in apps/files_encryption/ajax/adminrecovery.php
authorFlorin Peter <github@florin-peter.de>
Thu, 23 May 2013 20:09:28 +0000 (22:09 +0200)
committerFlorin Peter <github@florin-peter.de>
Thu, 23 May 2013 20:09:28 +0000 (22:09 +0200)
apps/files_encryption/ajax/adminrecovery.php

index 306f0088be3e3ce92224d307fbc5e225fe4f2ea4..6d7953b5639fd9a02633c5e955093a81a08f73e4 100644 (file)
@@ -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!'))));
 }