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:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user