From 829c169063577eefb50f2b6961f91f8bf29ae29d Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 22 Sep 2013 18:05:38 -0400 Subject: Translate strftime correctly --- src/misc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/misc.cpp') 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) -- cgit