From e67cb06ba6fad6c30ac32acab1f98ddbcf165405 Mon Sep 17 00:00:00 2001 From: Javier Borrego Date: Thu, 26 Nov 2026 13:57:04 +0100 Subject: [PATCH 1/2] Added translation according to meeting lang --- .../amendment-create-wizard.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts index 56beb3ee5b..8b31046b1f 100644 --- a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts +++ b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts @@ -9,7 +9,7 @@ import { ViewMotion } from '@app/site/pages/meetings/pages/motions'; import { OperatorService } from '@app/site/services/operator.service'; import { PromptService } from '@app/ui/modules/prompt-dialog'; import { TranslateService } from '@ngx-translate/core'; -import { Subscription } from 'rxjs'; +import { firstValueFrom, Subscription } from 'rxjs'; import { AmendmentParagraphs } from '../../../../../../../../../../../domain/models/motions/motion'; import { AmendmentControllerService } from '../../../../../../services/common/amendment-controller.service/amendment-controller.service'; @@ -183,9 +183,10 @@ export class AmendmentCreateWizardComponent extends BaseMeetingComponent impleme const submitterMeetingUserId = this.operator.isInMeeting(this.activeMeetingId) ? [this.operator.user.getMeetingUser(this.activeMeetingId)?.id] : []; + const title = await firstValueFrom(this.translate.get('Amendment to', undefined, this.activeMeeting.language)); const motionCreate = { ...this.contentForm.value, - title: this.translate.instant(`Amendment to`) + ` ` + this.motion.getNumberOrTitle(), + title: title + ' ' + `${this.motion.getNumberOrTitle()}`, parent_id: this.motion.id, category_id: this.operator.hasPerms(Permission.motionCanManage) ? this.motion.category_id : undefined, lead_motion_id: this.motion.id, From af6022a58e20038e2f4762b4791dfd88c2564101 Mon Sep 17 00:00:00 2001 From: Javier Borrego Date: Thu, 26 Nov 2026 14:02:24 +0100 Subject: [PATCH 2/2] Cleanup --- .../amendment-create-wizard.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts index 8b31046b1f..00af4c654d 100644 --- a/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts +++ b/client/src/app/site/pages/meetings/pages/motions/pages/motion-detail/pages/motion-form/components/amendment-create-wizard/amendment-create-wizard.component.ts @@ -186,7 +186,7 @@ export class AmendmentCreateWizardComponent extends BaseMeetingComponent impleme const title = await firstValueFrom(this.translate.get('Amendment to', undefined, this.activeMeeting.language)); const motionCreate = { ...this.contentForm.value, - title: title + ' ' + `${this.motion.getNumberOrTitle()}`, + title: title + ` ` + this.motion.getNumberOrTitle(), parent_id: this.motion.id, category_id: this.operator.hasPerms(Permission.motionCanManage) ? this.motion.category_id : undefined, lead_motion_id: this.motion.id,