Fix some strings and typos

This commit is contained in:
Thomas Imbreckx 2016-01-23 13:55:05 +01:00
parent 3080beb7f1
commit 8028be7ff2
4 changed files with 7 additions and 7 deletions

View File

@ -70,7 +70,7 @@ class RegisterController extends Controller {
if ( !$this->mailer->validateMailAddress($email) ) { if ( !$this->mailer->validateMailAddress($email) ) {
return new TemplateResponse('', 'error', array( return new TemplateResponse('', 'error', array(
'errors' => array(array( 'errors' => array(array(
'error' => $this->l10n->t('Email address you entered is not valid'), 'error' => $this->l10n->t('The email address you entered is not valid'),
'hint' => '' 'hint' => ''
)) ))
), 'error'); ), 'error');
@ -191,7 +191,7 @@ class RegisterController extends Controller {
if ( $user === false ) { if ( $user === false ) {
return new TemplateResponse('', 'error', array( return new TemplateResponse('', 'error', array(
'errors' => array(array( 'errors' => array(array(
'error' => $this->l10n->t('Unable to create user, there are problems with user backend.'), 'error' => $this->l10n->t('Unable to create user, there are problems with the user backend.'),
'hint' => '' 'hint' => ''
)) ))
), 'error'); ), 'error');
@ -305,7 +305,7 @@ class RegisterController extends Controller {
$html_part = $html_template->render(); $html_part = $html_template->render();
$plaintext_template = new TemplateResponse('registration', 'email.newuser_plaintext', $template_var, 'blank'); $plaintext_template = new TemplateResponse('registration', 'email.newuser_plaintext', $template_var, 'blank');
$plaintext_part = $plaintext_template->render(); $plaintext_part = $plaintext_template->render();
$subject = $this->l10n->t('A new user "%s" had created an account on %s', [$username, $this->defaults->getName()]); $subject = $this->l10n->t('A new user "%s" has created an account on %s', [$username, $this->defaults->getName()]);
$from = Util::getDefaultEmailAddress('register'); $from = Util::getDefaultEmailAddress('register');
$message = $this->mailer->createMessage(); $message = $this->mailer->createMessage();

View File

@ -20,7 +20,7 @@ foreach ( $_['groups'] as $group ) {
<input type="text" id="allowed_domains" name="allowed_domains" value=<?php p($_['allowed']);?>> <input type="text" id="allowed_domains" name="allowed_domains" value=<?php p($_['allowed']);?>>
</p> </p>
<p> <p>
<em><?php p($l->t('Enter a semicolon-seperated list of allowed domains. Example: owncloud.com;github.com'));?> <em><?php p($l->t('Enter a semicolon-separated list of allowed domains. Example: owncloud.com;github.com'));?>
</em> </em>
</p> </p>

View File

@ -2,7 +2,7 @@
\OCP\Util::addStyle('registration', 'style'); \OCP\Util::addStyle('registration', 'style');
?> ?>
<ul class="error-wide"> <ul class="error-wide">
<li class='error'><?php p($l->t('Registration is only allowed for following domains:')); ?> <li class='error'><?php p($l->t('Registration is only allowed for the following domains:')); ?>
<?php <?php
foreach ($_['domains'] as $domain ){ foreach ($_['domains'] as $domain ){
echo "<p class='hint'>"; echo "<p class='hint'>";

View File

@ -4,7 +4,7 @@ if ($_['entered']): ?>
<?php if (empty($_['errormsg'])): ?> <?php if (empty($_['errormsg'])): ?>
<ul class="success"> <ul class="success">
<li> <li>
<?php print_unescaped($l->t('Thank you for registering, you should receive verification link in a few minutes.')); ?> <?php print_unescaped($l->t('Thank you for registering, you should receive a verification link in a few minutes.')); ?>
</li> </li>
</ul> </ul>
<?php else: ?> <?php else: ?>
@ -33,7 +33,7 @@ if ($_['entered']): ?>
</ul> </ul>
<?php else: ?> <?php else: ?>
<ul class="msg"> <ul class="msg">
<li><?php print_unescaped($l->t('You will receive an email with verification link')); ?></li> <li><?php print_unescaped($l->t('You will receive an email with a verification link')); ?></li>
</ul> </ul>
<?php endif; ?> <?php endif; ?>
<p class="groupofone"> <p class="groupofone">