pricing login/register translation

This commit is contained in:
Bachir Soussi Chiadmi 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');
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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"

View File

@ -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 = [];