mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-14 20:35:08 +02:00
Added translations for 2FA.
This commit is contained in:
parent
0c7a8bd85e
commit
96fa3be7cc
8 changed files with 1612 additions and 78 deletions
|
@ -40,9 +40,8 @@ class TFAGoogleSettingsType extends AbstractType
|
|||
|
||||
protected $translator;
|
||||
|
||||
public function __construct(TranslatorInterface $translator)
|
||||
public function __construct()
|
||||
{
|
||||
$this->translator = $translator;
|
||||
}
|
||||
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
|
@ -73,11 +72,11 @@ class TFAGoogleSettingsType extends AbstractType
|
|||
);
|
||||
|
||||
$form->add('submit', SubmitType::class, [
|
||||
'label' => $this->translator->trans('tfa_google.enable')
|
||||
'label' => 'tfa_google.enable'
|
||||
]);
|
||||
} else {
|
||||
$form->add('submit', SubmitType::class, [
|
||||
'label' => $this->translator->trans('tfa_google.disable'),
|
||||
'label' =>'tfa_google.disable',
|
||||
'attr' => ['class' => 'btn-danger']
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue