diff --git a/modules/backend/lang/en/lang.php b/modules/backend/lang/en/lang.php index 5c19ac72c..43eb83299 100644 --- a/modules/backend/lang/en/lang.php +++ b/modules/backend/lang/en/lang.php @@ -139,8 +139,8 @@ return [ 'delete_selected_empty' => 'There are no selected records to delete.', 'delete_selected_confirm' => 'Delete the selected records?', 'delete_selected_success' => 'Successfully deleted the selected records.', - 'widget_switch_true' => 'Yes', - 'widget_switch_false' => 'No' + 'column_switch_true' => 'Yes', + 'column_switch_false' => 'No' ], 'fileupload' => [ 'attachment' => 'Attachment', diff --git a/modules/backend/lang/fr/lang.php b/modules/backend/lang/fr/lang.php index ee2c340e3..3fde1d150 100644 --- a/modules/backend/lang/fr/lang.php +++ b/modules/backend/lang/fr/lang.php @@ -139,8 +139,8 @@ return [ 'delete_selected_empty' => 'Il n’y a aucun enregistrement à supprimer', 'delete_selected_confirm' => 'Confirmer la suppression des enregistrements sélectionnés ?', 'delete_selected_success' => 'Les enregistrements ont bien été supprimés.', - 'widget_switch_true' => 'Oui', - 'widget_switch_false' => 'Non' + 'column_switch_true' => 'Oui', + 'column_switch_false' => 'Non' ], 'fileupload' => [ 'attachment' => 'Pièce jointe', diff --git a/modules/backend/widgets/Lists.php b/modules/backend/widgets/Lists.php index 0f61b201a..516f7353a 100644 --- a/modules/backend/widgets/Lists.php +++ b/modules/backend/widgets/Lists.php @@ -880,11 +880,11 @@ class Lists extends WidgetBase { $contents = ''; - if($value) { - $contents = trans('backend::lang.list.widget_switch_true'); + if ($value) { + $contents = Lang::get('backend::lang.list.column_switch_true'); } else { - $contents = trans('backend::lang.list.widget_switch_false'); + $contents = Lang::get('backend::lang.list.column_switch_false'); } return $contents;