diff --git a/translations/en.php b/translations/en.php index 5714dd7..b6bb209 100644 --- a/translations/en.php +++ b/translations/en.php @@ -13,12 +13,15 @@ 'text-confirm' => 'Ok', 'input-type-here' => 'Type here', 'new-course' => 'New Course', + 'active'=> 'Active', + 'inactive'=>'Inactive', 'course-description' => 'Description', 'status' => "Status", 'student-name' => 'Name', 'student-registry' => 'Registrion', 'student-cpf' => 'CPF', 'student-email' => 'E-mail', - 'student-created_at' => 'Registration date' + 'student-created_at' => 'Registration date', + ]; diff --git a/translations/pt-br.php b/translations/pt-br.php index 6e40661..9c0150d 100644 --- a/translations/pt-br.php +++ b/translations/pt-br.php @@ -13,12 +13,14 @@ 'text-confirm' => 'Pronto', 'input-type-here' => 'Digite aqui', 'new-course' => 'Novo Curso', + 'active'=>'Ativo', + 'inactive'=>'Inativo', 'course-description' => 'Descrição', 'status' => "Status", 'student-name' => 'Nome', 'student-registry' => 'Matrícula', 'student-cpf' => 'CPF', 'student-email' => 'E-mail', - 'student-created_at' => 'Data da Matrícula' + 'student-created_at' => 'Data da Matrícula', ]; diff --git a/views/curso/listar.php b/views/curso/listar.php index e774d99..c2d8382 100644 --- a/views/curso/listar.php +++ b/views/curso/listar.php @@ -16,13 +16,20 @@ status === true) { + $label = translate('active'); + $label = "{$label}"; + } else { + $label = translate('inactive'); + $label = "{$label}"; + } echo "