diff --git a/CHANGELOG.md b/CHANGELOG.md index fd3935f..872553d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ before starting to add changes. Use example [placed in the end of the page](#exa Drupal 11 compatibility. - [#355](https://github.com/OS2Forms/os2forms/issues/355) Children select elements warning fix. +- os2forms_webform_maps translation page fix ## [5.1.0] 2026-06-03 diff --git a/modules/os2forms_webform_maps/os2forms_webform_maps.module b/modules/os2forms_webform_maps/os2forms_webform_maps.module index af545a5..a0991a8 100644 --- a/modules/os2forms_webform_maps/os2forms_webform_maps.module +++ b/modules/os2forms_webform_maps/os2forms_webform_maps.module @@ -27,7 +27,13 @@ function os2forms_webform_maps_theme() { function os2forms_webform_maps_locale_translation_projects_alter(&$projects) { $module_handler = \Drupal::service('module_handler'); $path = $module_handler->getModule('os2forms_webform_maps')->getPath(); - $projects['os2forms_webform_maps']['info']['interface translation server pattern'] = $path . '/translations/%language.po'; + $projects['os2forms_webform_maps'] = [ + 'project_type' => 'module', + 'info' => [ + 'name' => 'OS2Forms Webform Maps', + 'interface translation server pattern' => $path . '/translations/%language.po' + ], + ]; } /**