Allow kick expire column value to be translated (#48)

This commit is contained in:
ruan 2020-06-27 12:29:48 +02:00
parent 3a959a8d15
commit 82e778ff08
2 changed files with 2 additions and 1 deletions

View File

@ -347,7 +347,7 @@ class Page {
*/ */
function expiry($row) { function expiry($row) {
if ($this->type === "kick") { if ($this->type === "kick") {
return "N/A"; return $this->t("generic.expired.kick");
} }
if ($row['until'] <= 0) { if ($row['until'] <= 0) {
$until = $this->permanent[$this->type]; $until = $this->permanent[$this->type];

View File

@ -42,6 +42,7 @@ class DefaultLang {
$array["generic.active"] = "Active"; $array["generic.active"] = "Active";
$array["generic.inactive"] = "Inactive"; $array["generic.inactive"] = "Inactive";
$array["generic.expired"] = "Expired"; $array["generic.expired"] = "Expired";
$array["generic.expired.kick"] = "N/A";
$array["generic.player-name"] = "Player"; $array["generic.player-name"] = "Player";
$array["page.expired.ban"] = '(Unbanned)'; $array["page.expired.ban"] = '(Unbanned)';