Merge pull request #32 from zinks-/fix-typo

Fix some strings and typos
This commit is contained in:
Pellaeon Lin 2016-02-04 17:15:25 +08:00
commit 79503085db
4 changed files with 7 additions and 7 deletions

View File

@ -70,7 +70,7 @@ class RegisterController extends Controller {
if ( !$this->mailer->validateMailAddress($email) ) {
return new TemplateResponse('', 'error', 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' => ''
))
), 'error');
@ -191,7 +191,7 @@ class RegisterController extends Controller {
if ( $user === false ) {
return new TemplateResponse('', 'error', 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' => ''
))
), 'error');
@ -305,7 +305,7 @@ class RegisterController extends Controller {
$html_part = $html_template->render();
$plaintext_template = new TemplateResponse('registration', 'email.newuser_plaintext', $template_var, 'blank');
$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');
$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']);?>>
</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>
</p>

View File

@ -2,7 +2,7 @@
\OCP\Util::addStyle('registration', 'style');
?>
<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
foreach ($_['domains'] as $domain ){
echo "<p class='hint'>";

View File

@ -4,7 +4,7 @@ if ($_['entered']): ?>
<?php if (empty($_['errormsg'])): ?>
<ul class="success">
<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>
</ul>
<?php else: ?>
@ -33,7 +33,7 @@ if ($_['entered']): ?>
</ul>
<?php else: ?>
<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>
<?php endif; ?>
<p class="groupofone">