pricing login/register translation

This commit is contained in:
2021-06-01 22:01:46 +02:00
parent f0b69fa76a
commit 370494499a
7 changed files with 7 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ function materio_user_form_user_login_form_alter(&$form, FormStateInterface $for
);
$url = Url::fromRoute('user.pass');
$form['pass']['#description'] = Link::fromTextAndUrl('Forgot your password?', $url)->toString();
$form['pass']['#description'] = Link::fromTextAndUrl(t('Forgot your password?'), $url)->toString();
// "<a href="{{ path('user.pass') }}">{{ 'Forgot your password?'|t }}</a>";
$form['actions']['submit']['#attributes'] = array(

View File

@@ -44,8 +44,7 @@ class AjaxLoginForm extends ControllerBase {
}
private function getFormDefinition(){
// $language = \Drupal::languageManager()->getCurrentLanguage()->getId();
// \Drupal::logger('materio_user')->notice($language);
$language = \Drupal::languageManager()->getCurrentLanguage()->getId();
$this->form_builded = $this->formBuilder->getForm('Drupal\user\Form\UserLoginForm');
}