From aabb9c8ad59c3bf701f8ddee53d31346a633f32f Mon Sep 17 00:00:00 2001
From: jojohoch <joachim.hoch@iqb.hu-berlin.de>
Date: Wed, 9 Mar 2022 08:49:56 +0100
Subject: [PATCH] [editor] Change translation key for the width of the page's
 type area

Remove case distinction when labeling the page's margin width
---
 .../src/app/components/unit-view/unit-view.component.html    | 5 ++---
 projects/editor/src/assets/i18n/de.json                      | 3 +--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/projects/editor/src/app/components/unit-view/unit-view.component.html b/projects/editor/src/app/components/unit-view/unit-view.component.html
index 02bbd848e..b7acadfee 100644
--- a/projects/editor/src/app/components/unit-view/unit-view.component.html
+++ b/projects/editor/src/app/components/unit-view/unit-view.component.html
@@ -53,15 +53,14 @@
                   {{'pageProperties.maxWidth' | translate }}
                 </mat-checkbox>
                 <mat-form-field *ngIf="page.hasMaxWidth" class="menuItem" appearance="fill">
-                  <mat-label>{{'pageProperties.maxInnerPageWidth' | translate }}</mat-label>
+                  <mat-label>{{'pageProperties.typeAreaWidth' | translate }}</mat-label>
                   <input matInput type="number" min="0" #maxWidth="ngModel"
                          [ngModel]="page.maxWidth"
                          (click)="$any($event).stopPropagation()"
                          (ngModelChange)="updateModel(page,'maxWidth', $event, maxWidth.valid)">
                 </mat-form-field>
                 <mat-form-field class="menuItem" appearance="fill">
-                  <mat-label *ngIf="page.hasMaxWidth">{{'pageProperties.additionalMarginWidth' | translate }}</mat-label>
-                  <mat-label *ngIf="!page.hasMaxWidth">{{'pageProperties.marginWidth' | translate }}</mat-label>
+                  <mat-label>{{'pageProperties.marginWidth' | translate }}</mat-label>
                   <input matInput type="number" min="0" #margin="ngModel"
                          [ngModel]="page.margin"
                          (click)="$any($event).stopPropagation()"
diff --git a/projects/editor/src/assets/i18n/de.json b/projects/editor/src/assets/i18n/de.json
index 410c19159..5b9766fa5 100644
--- a/projects/editor/src/assets/i18n/de.json
+++ b/projects/editor/src/assets/i18n/de.json
@@ -29,9 +29,8 @@
   },
   "pageProperties": {
     "maxWidth": "Maximalbreite",
-    "maxInnerPageWidth": "Satzspiegelbreite",
+    "typeAreaWidth": "Satzspiegelbreite",
     "marginWidth": "Randbreite",
-    "additionalMarginWidth": "Stegbreite",
     "backgroundColor": "Hintergrundfarbe",
     "alwaysVisible": "Immer angezeigt",
     "position": "Position",
-- 
GitLab