From 2d341fc1c1c3e21de2347f2976897c63419a6387 Mon Sep 17 00:00:00 2001
From: mohammad <mohammad.alayoub@mni.thm.de>
Date: Fri, 7 May 2021 19:26:28 +0200
Subject: [PATCH] added translation for the buttons readmore and readless

---
 .../topic-dialog-comment/topic-dialog-comment.component.html  | 2 +-
 .../topic-dialog-comment/topic-dialog-comment.component.scss  | 2 --
 src/assets/i18n/participant/de.json                           | 4 ++++
 src/assets/i18n/participant/en.json                           | 4 ++++
 4 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.html b/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.html
index e47759796..a188307db 100644
--- a/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.html
+++ b/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.html
@@ -3,7 +3,7 @@
     {{(isCollapsed) ? question : question | slice:0:maxShowedCharachters}}{{question.length > maxShowedCharachters && !isCollapsed? "..." : ""}}
     <button  *ngIf = "question.length > maxShowedCharachters" 
            (click)="isCollapsed = !isCollapsed">
-           {{ !isCollapsed ? 'more': 'less' }}
+           {{ "dialog-comment.read-" + (!isCollapsed ? 'more': 'less') | translate }}
     </button>
   </p>
 </div>
\ No newline at end of file
diff --git a/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.scss b/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.scss
index 8383a827a..af788a4d5 100644
--- a/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.scss
+++ b/src/app/components/shared/dialog/topic-dialog-comment/topic-dialog-comment.component.scss
@@ -15,7 +15,6 @@ button{
   background: none;
   font-weight: bold;
   border: 0px solid;
-  font-size: 14px;
 }
 
 button:focus{
@@ -24,6 +23,5 @@ button:focus{
 
 button:hover{
   text-decoration: underline;
-  font-size: 16px;
 }
 
diff --git a/src/assets/i18n/participant/de.json b/src/assets/i18n/participant/de.json
index 02d6a65d9..1ee55c1b6 100644
--- a/src/assets/i18n/participant/de.json
+++ b/src/assets/i18n/participant/de.json
@@ -234,5 +234,9 @@
     "cancel": "Abbrechen",
     "delete": "Löschen",
     "confirm": "Möchten Sie wirklich das Thema löschen"
+  },
+  "dialog-comment":{
+    "read-more": "Mehr lesen",
+    "read-less": "Weniger lesen"
   }
 }
diff --git a/src/assets/i18n/participant/en.json b/src/assets/i18n/participant/en.json
index a8f3fc317..85051cf0a 100644
--- a/src/assets/i18n/participant/en.json
+++ b/src/assets/i18n/participant/en.json
@@ -240,5 +240,9 @@
     "cancel": "Cancel",
     "delete": "Delete",
     "confirm": "Do you really want to delete the topic"
+  },
+  "dialog-comment":{
+    "read-more": "Read more",
+    "read-less": "Read less"
   }
 }
-- 
GitLab