1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 01:33:12 +02:00

Fix translating the help output when the flexible layout is used.

This commit is contained in:
Sadie Powell
2026-03-16 18:19:48 +00:00
parent 404f55502e
commit 63032dc8d9
+3 -2
View File
@@ -381,13 +381,14 @@ void HelpWrapper::SendTo(CommandSource &source)
for (const auto &[entry_name, entry_desc] : entries)
{
const auto *trans_desc = Language::Translate(source.nc, entry_desc.c_str());
if (flexible)
{
source.Reply("\002%s\002: %s", entry_name.c_str(), entry_desc.c_str());
source.Reply("\002%s\002: %s", entry_name.c_str(), trans_desc);
}
else
{
LineWrapper lw(Language::Translate(source.nc, entry_desc.c_str()), max_length);
LineWrapper lw(trans_desc, max_length);
Anope::string line;
Anope::string padding(longest - entry_name.utf8length(), ' ');