From a05d144380d9d4efd550d3854f70df60b1cdece3 Mon Sep 17 00:00:00 2001 From: ruan Date: Mon, 15 May 2017 06:38:34 +0200 Subject: [PATCH] Remove yes/no translations since they are never used --- inc/page.php | 2 +- lang/cs_CZ.utf8.php | 2 -- lang/da_DK.utf8.php | 2 -- lang/en_US.utf8.php | 2 -- lang/es_ES.utf8.php | 2 -- lang/ja_JP.utf8.php | 2 -- warnings.php | 2 +- 7 files changed, 2 insertions(+), 12 deletions(-) diff --git a/inc/page.php b/inc/page.php index cc3760f..df78c0f 100644 --- a/inc/page.php +++ b/inc/page.php @@ -349,7 +349,7 @@ class Page { } $a = "a"; 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"; $text = ""; } diff --git a/lang/cs_CZ.utf8.php b/lang/cs_CZ.utf8.php index a4f7bca..3d5f7ea 100644 --- a/lang/cs_CZ.utf8.php +++ b/lang/cs_CZ.utf8.php @@ -84,7 +84,5 @@ class Lang { $this->warns_reason = "Důvod varování"; $this->warns_when = "Varován kdy"; $this->warns_receive = "Varování doručeno"; - $this->warns_yes = "Ano"; - $this->warns_no = "Ne"; } } diff --git a/lang/da_DK.utf8.php b/lang/da_DK.utf8.php index f7557f9..bb8d309 100644 --- a/lang/da_DK.utf8.php +++ b/lang/da_DK.utf8.php @@ -84,8 +84,6 @@ class Lang { $this->warns_reason = "Advaret Fordi"; $this->warns_when = "Advaret Indtil"; $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. $this->check_invalid = "Ugyldigt Navn."; diff --git a/lang/en_US.utf8.php b/lang/en_US.utf8.php index 429c0f8..d8ca936 100644 --- a/lang/en_US.utf8.php +++ b/lang/en_US.utf8.php @@ -84,8 +84,6 @@ class Lang { $this->warns_reason = "Reason"; $this->warns_when = "Warned Until"; $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. $this->check_invalid = "Invalid name."; diff --git a/lang/es_ES.utf8.php b/lang/es_ES.utf8.php index 50ac713..1d0bf1a 100644 --- a/lang/es_ES.utf8.php +++ b/lang/es_ES.utf8.php @@ -82,8 +82,6 @@ class Lang { $this->warns_reason = "Razón"; $this->warns_when = "Advertido el"; $this->warns_receive = "¿Advertencia Recibida?"; - $this->warns_yes = "Sí"; - $this->warns_no = "No"; // Errors which are only accessible from invalid user input or removed pages. $this->check_invalid = "Nombre Inválido."; diff --git a/lang/ja_JP.utf8.php b/lang/ja_JP.utf8.php index 35a1361..435a1dd 100644 --- a/lang/ja_JP.utf8.php +++ b/lang/ja_JP.utf8.php @@ -84,8 +84,6 @@ class Lang { $this->warns_reason = "理由"; $this->warns_when = "日時"; $this->warns_receive = "受け取った警告"; - $this->warns_yes = "Yes"; - $this->warns_no = "No"; // Errors which are only accessible from invalid user input or removed pages. $this->check_invalid = "プレイヤー名が無効です"; diff --git a/warnings.php b/warnings.php index bcd46c0..b229645 100644 --- a/warnings.php +++ b/warnings.php @@ -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_reason => $page->clean($row['reason']), $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();