summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-11-25 01:19:41 +0000
committerSadie Powell <sadie@witchery.services>2024-11-25 01:20:03 +0000
commitebea7289572dde1cb0b87118e4be4f5718256941 (patch)
treed6e10995d50d6cf0bc8854e68528c37b1fa6331b /modules
parent233a5bf4cd71207e30430d076baf2e0aa0112f56 (diff)
Fix pluralising languages which use the same plural for 0 as 1.
Diffstat (limited to 'modules')
-rw-r--r--modules/botserv/bs_info.cpp2
-rw-r--r--modules/memoserv/memoserv.cpp2
-rw-r--r--modules/nickserv/ns_group.cpp2
-rw-r--r--modules/operserv/os_forbid.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/botserv/bs_info.cpp b/modules/botserv/bs_info.cpp
index 91aa2fc7e..325825a8e 100644
--- a/modules/botserv/bs_info.cpp
+++ b/modules/botserv/bs_info.cpp
@@ -55,7 +55,7 @@ public:
info[_("Real name")] = bi->realname;
info[_("Created")] = Anope::strftime(bi->created, source.GetAccount());
info[_("Options")] = bi->oper_only ? _("Private") : _("None");
- info[_("Used on")] = Anope::printf(Language::Translate(source.nc, N_("1 channel", "%u channels")), bi->GetChannelCount());
+ info[_("Used on")] = Anope::printf(Language::Translate(source.nc, N_("%u channel", "%u channels")), bi->GetChannelCount());
FOREACH_MOD(OnBotInfo, (source, bi, ci, info));
diff --git a/modules/memoserv/memoserv.cpp b/modules/memoserv/memoserv.cpp
index 4b005eaf5..957d6dd32 100644
--- a/modules/memoserv/memoserv.cpp
+++ b/modules/memoserv/memoserv.cpp
@@ -139,7 +139,7 @@ public:
if (nc->memos.GetMemo(i)->unread)
++newcnt;
if (newcnt > 0)
- u->SendMessage(MemoServ, newcnt, N_("You have 1 new memo.", "You have %d new memos."), newcnt);
+ u->SendMessage(MemoServ, newcnt, N_("You have %d new memo.", "You have %d new memos."), newcnt);
if (nc->memos.memomax > 0 && nc->memos.memos->size() >= static_cast<unsigned>(nc->memos.memomax))
{
if (nc->memos.memos->size() > static_cast<unsigned>(nc->memos.memomax))
diff --git a/modules/nickserv/ns_group.cpp b/modules/nickserv/ns_group.cpp
index 3ccba782c..54ee210b7 100644
--- a/modules/nickserv/ns_group.cpp
+++ b/modules/nickserv/ns_group.cpp
@@ -356,7 +356,7 @@ public:
for (const auto &reply : replies)
source.Reply(reply);
- source.Reply(nc->aliases->size(), N_("1 nickname in the group.", "%zu nicknames in the group."), nc->aliases->size());
+ source.Reply(nc->aliases->size(), N_("%zu nickname in the group.", "%zu nicknames in the group."), nc->aliases->size());
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) override
diff --git a/modules/operserv/os_forbid.cpp b/modules/operserv/os_forbid.cpp
index 374e04648..7f7881420 100644
--- a/modules/operserv/os_forbid.cpp
+++ b/modules/operserv/os_forbid.cpp
@@ -292,7 +292,7 @@ public:
delete na;
}
- source.Reply(na_matches, N_("\0021\002 nickname dropped.", "\002%d\002 nicknames dropped."), na_matches);
+ source.Reply(na_matches, N_("\002%d\002 nickname dropped.", "\002%d\002 nicknames dropped."), na_matches);
break;
}
case FT_CHAN: