Skip to content

Alert for new sections not fully translatable #4740

@ghoussod

Description

@ghoussod

Describe the bug

In DSpace 8.1. when adding a new section (e.g., the "duplicates" section) in the submission form, the associated alert message supports only partial translation.

File src\app\submission\submission.service.ts

  notifyNewSection(submissionId: string, sectionId: string, sectionType?: SectionsType) {
    const m = this.translate.instant('submission.sections.general.metadata-extracted-new-section', { sectionId });
    this.notificationsService.info(null, m, null, true);
  }

To Reproduce

Steps to reproduce the behavior:

  1. Start a new submission
  2. Add a new section / trigger the duplicates section to appear with a title that already exists in the database
  3. Observe the alert message displayed in the upper right corner

Expected behavior

It would be better if the entire alert message were translatable. For example, it could use a key like:
'submission.sections.general.metadata-extracted-new-section.' + sectionId
with the original message as the default fallback. This approach would allow each newly added section—especially the "duplicates" section—to display a specific, fully translatable alert message.

Metadata

Metadata

Labels

Type

Projects

Status

🏗 In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions