diff options
author | Dragone2 <davide.paolini8@gmail.com> | 2018-06-12 16:22:20 +0200 |
---|---|---|
committer | Adam <adam@sigterm.info> | 2018-06-12 10:22:20 -0400 |
commit | 281edf8475682b81453a37e42828f0dc6d069008 (patch) | |
tree | 870262364b65754c3d12ee61f57c0a02292f9db9 /modules/commands/cs_seen.cpp | |
parent | ce7c266651178a30f4618cbd0825f987e00b6425 (diff) |
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().
Diffstat (limited to 'modules/commands/cs_seen.cpp')
-rw-r--r-- | modules/commands/cs_seen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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()); |