diff options
author | Adam <Adam@anope.org> | 2013-09-22 18:05:38 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-27 19:11:02 -0400 |
commit | 829c169063577eefb50f2b6961f91f8bf29ae29d (patch) | |
tree | 538a5e693fa3b8c906f7cbce709dbb4ff11305cc /src/misc.cpp | |
parent | 4948120b699ddbf455e44ede72ecb4547fae0afc (diff) |
Translate strftime correctly
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc.cpp b/src/misc.cpp index 35eddd87f..76f666d28 100644 --- a/src/misc.cpp +++ b/src/misc.cpp @@ -361,9 +361,9 @@ Anope::string Anope::strftime(time_t t, const NickCore *nc, bool short_output) if (short_output) return buf; if (t < Anope::CurTime) - return Anope::string(buf) + " " + Anope::printf(Language::Translate(nc, _("(%s ago)")), Duration(Anope::CurTime - t).c_str(), nc); + return Anope::string(buf) + " " + Anope::printf(Language::Translate(nc, _("(%s ago)")), Duration(Anope::CurTime - t, nc).c_str(), nc); else - return Anope::string(buf) + " " + Anope::printf(Language::Translate(nc, _("(%s from now)")), Duration(t - Anope::CurTime).c_str(), nc); + return Anope::string(buf) + " " + Anope::printf(Language::Translate(nc, _("(%s from now)")), Duration(t - Anope::CurTime, nc).c_str(), nc); } Anope::string Anope::Expires(time_t expires, const NickCore *nc) |