Updated UI messages relating to the encryption functionality

The reason for updating these messages, is that grammatically they're
not quite correct. They showed a combination of:

- Related phrases, which could be either separated or joined better
- Related sentences, but which should be expressed as separate ones

They were also missing full-stops to end the them.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Matthew Setter 2017-02-27 10:16:57 +01:00 committed by Morris Jobke
parent d551b8e6fd
commit d7c9e2b841
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
3 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ class StatusController extends Controller {
case Session::NOT_INITIALIZED:
$status = 'interactionNeeded';
$message = (string)$this->l->t(
'Encryption app is enabled but your keys are not initialized, please log-out and log-in again'
'Encryption App is enabled, but your keys are not initialized. Please log-out and log-in again.'
);
break;
case Session::INIT_SUCCESSFUL:

View File

@ -9,7 +9,7 @@ script('core', 'multiselect');
<?php if ($_["initialized"] === \OCA\Encryption\Session::NOT_INITIALIZED ): ?>
<?php p($l->t("Encryption App is enabled but your keys are not initialized, please log-out and log-in again")); ?>
<?php p($l->t("Encryption App is enabled, but your keys are not initialized. Please log-out and log-in again.")); ?>
<?php elseif ( $_["initialized"] === \OCA\Encryption\Session::INIT_EXECUTED ): ?>
<p>

View File

@ -217,7 +217,7 @@ class ChangePasswordController extends Controller {
return new JSONResponse([
'status' => 'error',
'data' => [
'message' => $this->l->t('Please provide an admin recovery password, otherwise all user data will be lost'),
'message' => $this->l->t('Please provide an admin recovery password; otherwise, all user data will be lost.'),
]
]);
} elseif ($recoveryEnabledForUser && ! $validRecoveryPassword) {