1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 03:36:38 +02:00

Translate strftime correctly

This commit is contained in:
Adam
2013-09-22 18:05:38 -04:00
parent 4948120b69
commit 829c169063
+2 -2
View File
@@ -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)