mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
l10n: Correct error messages
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
This commit is contained in:
parent
6bd6f92850
commit
77472db054
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue