Drupal 8, translation: .po file in custom module is not loaded

I am trying to add a po file to my custom module. I was following the instruction in the documentation: https://api.drupal.org/api/drupal/core!modules!locale!locale.api.php/gro… Here my code: modules/mymodule/mymodule.info.yml: name: mymodule core: 8.x version: 1 type: module package: mymodule description: My module. interface translation project: mymodule interface translation server[…]

Routing error

I am getting DrupalComponentSerializationExceptionInvalidDataTypeException: Unable to parse at line 6 (near ” requirements This is my routing file competition.form: path: ‘/competition/CompetitionForm’ defaults: _title: ” _form: ‘DrupalcompetitionFormCompetitionForm’ requirements: _permission: ‘access content’ This is the first time I have used Drupal 8 and I have no idea[…]

Form validation

This is my form field $form[‘loyalty_code’] = array ( ‘#name’ => ‘loyalty_code’, ‘#id’ => ‘loyalty_code’, ‘#type’ => ‘textfield’, ‘#title’ => (‘LOYALTY CODE’), ‘#required’ => TRUE, ‘#prefix’ => ‘<hr> <div class=”label-wrap loyalty-code”>’, ‘#suffix’ => ‘</div>’, ); This is my validation public function validateForm(array &$form, FormStateInterface $form_state)[…]

export calendar / timezone error

i try to export my calendar in ical using date ical module but i got an error: “DateTimeZone::__construct(): Unknown or bad timezone (1)” This is the lines of code concerned:  $start = new DateObject($date_field, $date_field[‘timezone_db’]); $end = new DateObject($date_field, $date_field[‘timezone_db’]); And: $start->setTimezone(new DateTimeZone($date_field[‘timezone’])); $end->setTimezone(new DateTimeZone($date_field[‘timezone’])); Do[…]