1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 16:53:16 +02:00

Use a plural form translation for the ns_maxemail error.

This commit is contained in:
Sadie Powell
2025-03-22 21:04:25 +00:00
parent e14a650cb9
commit a40eaeb2a3
2 changed files with 6 additions and 12 deletions
+1 -5
View File
@@ -45,11 +45,7 @@ class NSMaxEmail final
if (this->CountEmail(email, ignoreself ? source.GetAccount() : NULL) < NSEmailMax)
return false;
if (NSEmailMax == 1)
source.Reply(_("The email address \002%s\002 has reached its usage limit of 1 user."), email.c_str());
else
source.Reply(_("The email address \002%s\002 has reached its usage limit of %d users."), email.c_str(), NSEmailMax);
source.Reply(NSEmailMax, N_("The email address \002%s\002 has reached its usage limit of %u user.", "The email address \002%s\002 has reached its usage limit of %u users."), email.c_str());
return true;
}