Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 7 additions & 1 deletion modules/os2forms_webform_maps/os2forms_webform_maps.module
Original file line number Diff line number Diff line change
Expand Up @@ -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',

@jekuaitk jekuaitk Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think defining project_type here should be necessary?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jekuaitk yes, it gave a warning without it

'info' => [
'name' => 'OS2Forms Webform Maps',
'interface translation server pattern' => $path . '/translations/%language.po'
],
];
}

/**
Expand Down
Loading