Remove yes/no translations since they are never used

This commit is contained in:
ruan 2017-05-15 06:38:34 +02:00
parent ce374b2076
commit a05d144380
No known key found for this signature in database
GPG Key ID: 062534EE618F498C
7 changed files with 2 additions and 12 deletions

View File

@ -349,7 +349,7 @@ class Page {
} }
$a = "a"; $a = "a";
if ($header === $this->lang->warns_receive) { if ($header === $this->lang->warns_receive) {
$icon = ($text !== $this->lang->warns_no) ? "glyphicon-ok" : "glyphicon-remove"; $icon = ($text !== "0") ? "glyphicon-ok" : "glyphicon-remove";
$a .= " class=\"glyphicon $icon\" aria-hidden=true"; $a .= " class=\"glyphicon $icon\" aria-hidden=true";
$text = ""; $text = "";
} }

View File

@ -84,7 +84,5 @@ class Lang {
$this->warns_reason = "Důvod varování"; $this->warns_reason = "Důvod varování";
$this->warns_when = "Varován kdy"; $this->warns_when = "Varován kdy";
$this->warns_receive = "Varování doručeno"; $this->warns_receive = "Varování doručeno";
$this->warns_yes = "Ano";
$this->warns_no = "Ne";
} }
} }

View File

@ -84,8 +84,6 @@ class Lang {
$this->warns_reason = "Advaret Fordi"; $this->warns_reason = "Advaret Fordi";
$this->warns_when = "Advaret Indtil"; $this->warns_when = "Advaret Indtil";
$this->warns_receive = "Modtog Advarelse"; $this->warns_receive = "Modtog Advarelse";
$this->warns_yes = "Ja";
$this->warns_no = "Nej";
// Errors which are only accessible from invalid user input or removed pages. // Errors which are only accessible from invalid user input or removed pages.
$this->check_invalid = "Ugyldigt Navn."; $this->check_invalid = "Ugyldigt Navn.";

View File

@ -84,8 +84,6 @@ class Lang {
$this->warns_reason = "Reason"; $this->warns_reason = "Reason";
$this->warns_when = "Warned Until"; $this->warns_when = "Warned Until";
$this->warns_receive = "Received Warning"; $this->warns_receive = "Received Warning";
$this->warns_yes = "Yes";
$this->warns_no = "No";
// Errors which are only accessible from invalid user input or removed pages. // Errors which are only accessible from invalid user input or removed pages.
$this->check_invalid = "Invalid name."; $this->check_invalid = "Invalid name.";

View File

@ -82,8 +82,6 @@ class Lang {
$this->warns_reason = "Razón"; $this->warns_reason = "Razón";
$this->warns_when = "Advertido el"; $this->warns_when = "Advertido el";
$this->warns_receive = "¿Advertencia Recibida?"; $this->warns_receive = "¿Advertencia Recibida?";
$this->warns_yes = "";
$this->warns_no = "No";
// Errors which are only accessible from invalid user input or removed pages. // Errors which are only accessible from invalid user input or removed pages.
$this->check_invalid = "Nombre Inválido."; $this->check_invalid = "Nombre Inválido.";

View File

@ -84,8 +84,6 @@ class Lang {
$this->warns_reason = "理由"; $this->warns_reason = "理由";
$this->warns_when = "日時"; $this->warns_when = "日時";
$this->warns_receive = "受け取った警告"; $this->warns_receive = "受け取った警告";
$this->warns_yes = "Yes";
$this->warns_no = "No";
// Errors which are only accessible from invalid user input or removed pages. // Errors which are only accessible from invalid user input or removed pages.
$this->check_invalid = "プレイヤー名が無効です"; $this->check_invalid = "プレイヤー名が無効です";

View File

@ -20,7 +20,7 @@ foreach ($rows as $row) {
$page->lang->warns_by => $page->get_avatar($page->get_banner_name($row), $row['banned_by_uuid']), $page->lang->warns_by => $page->get_avatar($page->get_banner_name($row), $row['banned_by_uuid']),
$page->lang->warns_reason => $page->clean($row['reason']), $page->lang->warns_reason => $page->clean($row['reason']),
$page->lang->warns_when => $page->expiry($row), $page->lang->warns_when => $page->expiry($row),
$page->lang->warns_receive => (($page->active($row, 'warned') === true) ? $page->lang->warns_yes : $page->lang->warns_no), $page->lang->warns_receive => (($page->active($row, 'warned') === true) ? "1" : "0"),
)); ));
} }
$page->table_end(); $page->table_end();