Move L10n::tt() calls to DI::l10n()->tt() calls

This commit is contained in:
nupplaPhil 2020-01-18 20:53:01 +01:00
parent 5dfee31108
commit a9a36fb302
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
20 changed files with 42 additions and 42 deletions

View file

@ -667,11 +667,11 @@ class User
}
if (mb_strlen($username) < $username_min_length) {
throw new Exception(L10n::tt('Username should be at least %s character.', 'Username should be at least %s characters.', $username_min_length));
throw new Exception(DI::l10n()->tt('Username should be at least %s character.', 'Username should be at least %s characters.', $username_min_length));
}
if (mb_strlen($username) > $username_max_length) {
throw new Exception(L10n::tt('Username should be at most %s character.', 'Username should be at most %s characters.', $username_max_length));
throw new Exception(DI::l10n()->tt('Username should be at most %s character.', 'Username should be at most %s characters.', $username_max_length));
}
// So now we are just looking for a space in the full name.