From a0d57746353ddffaa6abce19796cb4a8db8a895c Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Mon, 14 Aug 2023 10:42:17 -0700 Subject: [PATCH] adds translations to status label type column --- app/Models/Statuslabel.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Models/Statuslabel.php b/app/Models/Statuslabel.php index 0f8a0b607..66f22ada9 100755 --- a/app/Models/Statuslabel.php +++ b/app/Models/Statuslabel.php @@ -74,14 +74,14 @@ class Statuslabel extends SnipeModel public function getStatuslabelType() { if (($this->pending == '1') && ($this->archived == '0') && ($this->deployable == '0')) { - return 'pending'; + return trans('admin/statuslabels/table.pending'); } elseif (($this->pending == '0') && ($this->archived == '1') && ($this->deployable == '0')) { - return 'archived'; + return trans('admin/statuslabels/table.archived'); } elseif (($this->pending == '0') && ($this->archived == '0') && ($this->deployable == '0')) { - return 'undeployable'; + return trans('admin/statuslabels/table.undeployable'); } - return 'deployable'; + return trans('admin/statuslabels/table.deployable'); } /**