Browse Source

pricing login/register translation

bach 3 years ago
parent
commit
370494499a

+ 1 - 1
web/modules/custom/materio_user/materio_user.module

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

+ 1 - 2
web/modules/custom/materio_user/src/Controller/AjaxLoginForm.php

@@ -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 it is too large
+ 0 - 0
web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js


BIN
web/themes/custom/materiotheme/assets/dist/module-pricing.bundle.js.gz


File diff suppressed because it is too large
+ 1 - 1
web/themes/custom/materiotheme/assets/dist/report.html


+ 1 - 1
web/themes/custom/materiotheme/vuejs/components/Content/Product.vue

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

+ 1 - 1
web/themes/custom/materiotheme/vuejs/components/Form/LoginForm.vue

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

Some files were not shown because too many files changed in this diff