From 281edf8475682b81453a37e42828f0dc6d069008 Mon Sep 17 00:00:00 2001 From: Dragone2 Date: Tue, 12 Jun 2018 16:22:20 +0200 Subject: cs_seen: fix for translations being ignored These strings: " but %s mysteriously dematerialized.", ". %s is still online." and ", but %s mysteriously dematerialized." weren't translated by the method Anope::printf(). --- modules/commands/cs_seen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/commands/cs_seen.cpp b/modules/commands/cs_seen.cpp index 41a067f1e..121633ebc 100644 --- a/modules/commands/cs_seen.cpp +++ b/modules/commands/cs_seen.cpp @@ -300,7 +300,7 @@ class CommandSeen : public Command if (u2) onlinestatus = "."; else - onlinestatus = Anope::printf(_(" but %s mysteriously dematerialized."), target.c_str()); + onlinestatus = Anope::printf(Language::Translate(source.nc, _(" but %s mysteriously dematerialized.")), target.c_str()); Anope::string timebuf = Anope::Duration(Anope::CurTime - info->last, source.nc); Anope::string timebuf2 = Anope::strftime(info->last, source.nc, true); @@ -314,9 +314,9 @@ class CommandSeen : public Command { u2 = User::Find(info->nick2, true); if (u2) - onlinestatus = Anope::printf( _(". %s is still online."), u2->nick.c_str()); + onlinestatus = Anope::printf(Language::Translate(source.nc, _(". %s is still online.")), u2->nick.c_str()); else - onlinestatus = Anope::printf(_(", but %s mysteriously dematerialized."), info->nick2.c_str()); + onlinestatus = Anope::printf(Language::Translate(source.nc, _(", but %s mysteriously dematerialized.")), info->nick2.c_str()); source.Reply(_("%s (%s) was last seen changing nick to %s %s ago%s"), target.c_str(), info->vhost.c_str(), info->nick2.c_str(), timebuf.c_str(), onlinestatus.c_str()); -- cgit