From 51d72e1c3e78b6b3bc903d11b107c88b76599080 Mon Sep 17 00:00:00 2001 From: Stanislav Kutasevits Date: Mon, 21 Sep 2026 14:41:21 +0300 Subject: [PATCH] Fixing translation setting page --- CHANGELOG.md | 1 + .../os2forms_webform_maps/os2forms_webform_maps.module | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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' + ], + ]; } /**