From 8028be7ff2c1d66f93070f098001460ecce46bc1 Mon Sep 17 00:00:00 2001
From: Thomas Imbreckx
Date: Sat, 23 Jan 2016 13:55:05 +0100
Subject: [PATCH] Fix some strings and typos
---
controller/registercontroller.php | 6 +++---
templates/admin.php | 2 +-
templates/domains.php | 2 +-
templates/register.php | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/controller/registercontroller.php b/controller/registercontroller.php
index 4b37337..e30a98b 100644
--- a/controller/registercontroller.php
+++ b/controller/registercontroller.php
@@ -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();
diff --git a/templates/admin.php b/templates/admin.php
index e8bc935..09fc84e 100644
--- a/templates/admin.php
+++ b/templates/admin.php
@@ -20,7 +20,7 @@ foreach ( $_['groups'] as $group ) {
>
- t('Enter a semicolon-seperated list of allowed domains. Example: owncloud.com;github.com'));?>
+ t('Enter a semicolon-separated list of allowed domains. Example: owncloud.com;github.com'));?>
t('Registration is only allowed for following domains:')); ?>
+
t('Registration is only allowed for the following domains:')); ?>
";
diff --git a/templates/register.php b/templates/register.php
index a07f60e..07af9a4 100644
--- a/templates/register.php
+++ b/templates/register.php
@@ -4,7 +4,7 @@ if ($_['entered']): ?>
- t('Thank you for registering, you should receive verification link in a few minutes.')); ?>
+ t('Thank you for registering, you should receive a verification link in a few minutes.')); ?>
@@ -33,7 +33,7 @@ if ($_['entered']): ?>
-
t('You will receive an email with verification link')); ?>
+
t('You will receive an email with a verification link')); ?>