From 77472db0543697f4fcb35a2f8efd38fe5b516af3 Mon Sep 17 00:00:00 2001 From: Valdnet <47037905+Valdnet@users.noreply.github.com> Date: Fri, 16 Sep 2022 09:18:24 +0200 Subject: l10n: Correct error messages Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com> --- lib/private/Setup/AbstractDatabase.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/private/Setup/AbstractDatabase.php b/lib/private/Setup/AbstractDatabase.php index 5ee9548564c..6c67254deba 100644 --- a/lib/private/Setup/AbstractDatabase.php +++ b/lib/private/Setup/AbstractDatabase.php @@ -69,14 +69,14 @@ abstract class AbstractDatabase { public function validate($config) { $errors = []; if (empty($config['dbuser']) && empty($config['dbname'])) { - $errors[] = $this->trans->t("%s enter the database username and name.", [$this->dbprettyname]); + $errors[] = $this->trans->t("Enter the database username and name for %s", [$this->dbprettyname]); } elseif (empty($config['dbuser'])) { - $errors[] = $this->trans->t("%s enter the database username.", [$this->dbprettyname]); + $errors[] = $this->trans->t("Enter the database username for %s", [$this->dbprettyname]); } elseif (empty($config['dbname'])) { - $errors[] = $this->trans->t("%s enter the database name.", [$this->dbprettyname]); + $errors[] = $this->trans->t("Enter the database name for %s", [$this->dbprettyname]); } if (substr_count($config['dbname'], '.') >= 1) { - $errors[] = $this->trans->t("%s you may not use dots in the database name", [$this->dbprettyname]); + $errors[] = $this->trans->t("You cannot use dots in the database name %s", [$this->dbprettyname]); } return $errors; } -- cgit v1.2.3