-
Notifications
You must be signed in to change notification settings - Fork 504
Open
Labels
bugcomponent: submissionhelp wantedNeeds a volunteer to claim to move forwardNeeds a volunteer to claim to move forwardi18n / l10nInternationalisation and localisation, related to message catalogsInternationalisation and localisation, related to message catalogs
Description
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:
- Start a new submission
- Add a new section / trigger the duplicates section to appear with a title that already exists in the database
- 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
Assignees
Labels
bugcomponent: submissionhelp wantedNeeds a volunteer to claim to move forwardNeeds a volunteer to claim to move forwardi18n / l10nInternationalisation and localisation, related to message catalogsInternationalisation and localisation, related to message catalogs
Type
Projects
Status
📋 To Do