Prechádzať zdrojové kódy

Fixed the strings and translations for add-cards

Warafear 10 mesiacov pred
rodič
commit
9c3626587a

+ 9 - 5
src/app/journal/journal-spellcards/add-card/add-card.component.html

@@ -7,15 +7,19 @@
     <div class="spell-selection">
       <div class="controll-row">
         <div class="toggle-row">
-          <span class="toggle-label" [class]="showAll ? 'inactive' : 'active'"
-            >Klasse</span
+          <span
+            class="toggle-label"
+            [class]="showAll ? 'inactive' : 'active'"
+            >{{ "spellcards.add.class" | translate }}</span
           >
           <mat-slide-toggle
             [hideIcon]="true"
             (change)="toggleShowAll()"
           ></mat-slide-toggle>
-          <span class="toggle-label" [class]="showAll ? 'active' : 'inactive'"
-            >Alle</span
+          <span
+            class="toggle-label"
+            [class]="showAll ? 'active' : 'inactive'"
+            >{{ "spellcards.add.all" | translate }}</span
           >
         </div>
         <icon-button [icon]="'cross'" (click)="resetThis()"></icon-button>
@@ -24,7 +28,7 @@
         type="text"
         class="spell-name"
         [(ngModel)]="newSpellName"
-        [placeholder]="'spellcards.add.official' | translate"
+        [placeholder]="'spellcards.add.search' | translate"
         (keyup)="filterSpellArray()"
       />
       <div class="available-spells">

+ 3 - 5
src/assets/i18n/de.json

@@ -724,12 +724,10 @@
     "cantrips": "Zaubertricks",
     "delete": "Zum Löschen hier ablegen",
     "add": {
-      "official": "Offizieller Zauber",
-      "custom": "Eigener Zauber",
-      "edit": "Offizieller Zauber bearbeiten",
-      "lookup": "Zauber durchsuchen",
       "empty": "Keine Zauber gefunden",
-      "cancel": "Abbrechen"
+      "class": "Klasse",
+      "all": "Alle",
+      "search": "Durchsuchen"
     }
   },
   "spellmodal": {

+ 3 - 5
src/assets/i18n/en.json

@@ -720,12 +720,10 @@
     "cantrips": "Cantrips",
     "delete": "Drop here to delete",
     "add": {
-      "official": "Official Spells",
-      "custom": "Custom Spells",
-      "edit": "Edit Official Spells",
-      "lookup": "Search Spells",
       "empty": "No spells found",
-      "cancel": "Cancel"
+      "class": "Class",
+      "all": "All",
+      "search": "Search"
     }
   },
   "spellmodal": {