pricing login/register translation
This commit is contained in:
parent
f0b69fa76a
commit
370494499a
|
@ -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(
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -31,7 +31,7 @@
|
|||
:styles="{width:'500px', height:'350px'}"
|
||||
>
|
||||
<section id="pricing-modal-login-register">
|
||||
<h2>{{ $t("materio.Please login or create a new account to order your access") }}</h2>
|
||||
<h2>{{ $t("materio.Please login or create a new account") }}</h2>
|
||||
<LoginRegister
|
||||
:callbackargs="showLoginModal"
|
||||
@onLogedIn="onLogedIn"
|
||||
|
|
|
@ -25,7 +25,7 @@ export default {
|
|||
// vuejs attributes a inserted by form alter in same module
|
||||
MA.get(`/materio_user/login_form`)
|
||||
.then(({data}) => {
|
||||
console.log('getLoginForm data')
|
||||
console.log('getLoginForm data', data)
|
||||
this.form = Vue.compile(data.rendered)
|
||||
this.$options.staticRenderFns = [];
|
||||
this._staticTrees = [];
|
||||
|
|
Loading…
Reference in New Issue