1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:04:47 +02:00

Fix some messages that should use plural forms.

This commit is contained in:
Sadie Powell
2025-11-25 00:32:32 +00:00
parent 20a8fcc574
commit 52063fe05f
3 changed files with 17 additions and 10 deletions
+10 -6
View File
@@ -16,8 +16,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Anope\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-11-25 00:05+0000\n"
"PO-Revision-Date: 2025-11-25 00:05+0000\n"
"POT-Creation-Date: 2025-11-25 00:31+0000\n"
"PO-Revision-Date: 2025-11-25 00:32+0000\n"
"Last-Translator: Sadie Powell <sadie@witchery.services>\n"
"Language-Team: English\n"
"Language: en_US\n"
@@ -5468,12 +5468,16 @@ msgid "The mask must contain at least one non wildcard character."
msgstr ""
#, c-format
msgid "The maximum of %d auto join entries has been reached."
msgstr ""
msgid "The maximum of %u auto join entry has been reached."
msgid_plural "The maximum of %u auto join entries has been reached."
msgstr[0] ""
msgstr[1] ""
#, c-format
msgid "The maximum of %d certificate entries has been reached."
msgstr ""
msgid "The maximum of %u certificate entry has been reached."
msgid_plural "The maximum of %u certificate entries has been reached."
msgstr[0] ""
msgstr[1] ""
#, c-format
msgid "The memo ignore list for %s is full."
+4 -2
View File
@@ -140,6 +140,7 @@ class CommandNSAJoin final
void DoAdd(CommandSource &source, NickCore *nc, const Anope::string &chans, const Anope::string &keys)
{
const auto ajoinmax = Config->GetModule(this->owner).Get<unsigned>("ajoinmax");
AJoinList *channels = nc->Require<AJoinList>("ajoinlist");
Anope::string addedchans;
@@ -156,9 +157,10 @@ class CommandNSAJoin final
if ((*channels)->at(i)->channel.equals_ci(chan))
break;
if ((*channels)->size() >= Config->GetModule(this->owner).Get<unsigned>("ajoinmax"))
if ((*channels)->size() >= ajoinmax)
{
source.Reply(_("The maximum of %d auto join entries has been reached."), Config->GetModule(this->owner).Get<unsigned>("ajoinmax"));
source.Reply(ajoinmax, N_("The maximum of %u auto join entry has been reached.", "The maximum of %u auto join entries has been reached."),
ajoinmax);
return;
}
else if (i != (*channels)->size())
+3 -2
View File
@@ -210,11 +210,12 @@ private:
void DoAdd(CommandSource &source, NickCore *nc, Anope::string certfp)
{
auto *cl = nc->Require<NickServ::CertList>(NICKSERV_CERT_EXT);
unsigned max = Config->GetModule(this->owner).Get<unsigned>("max", "5");
const auto max = Config->GetModule(this->owner).Get<unsigned>("max", "5");
if (cl->GetCertCount() >= max)
{
source.Reply(_("The maximum of %d certificate entries has been reached."), max);
source.Reply(max, N_("The maximum of %u certificate entry has been reached.", "The maximum of %u certificate entries has been reached."),
max);
return;
}