mirror of
https://github.com/friendica/friendica
synced 2025-04-24 11:50:10 +00:00
Move L10n::tt() calls to DI::l10n()->tt() calls
This commit is contained in:
parent
5dfee31108
commit
a9a36fb302
20 changed files with 42 additions and 42 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue