From 3eb5132bee171cde4d2d64258b773f48586d271f Mon Sep 17 00:00:00 2001
From: Peter Thienel <thienel@data-quest.de>
Date: Fri, 26 Nov 2021 18:59:55 +0100
Subject: [PATCH] some adjustments due to QA textstrings #401

---
 app/views/course/topics/edit.php  |  6 +++---
 app/views/course/topics/index.php | 18 +++++++++---------
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/app/views/course/topics/edit.php b/app/views/course/topics/edit.php
index 2180060678e..0faa486ce71 100644
--- a/app/views/course/topics/edit.php
+++ b/app/views/course/topics/edit.php
@@ -39,7 +39,7 @@
         <label>
         <? if ($topic->forum_thread_url) : ?>
             <?= Icon::create('accept', Icon::ROLE_ACCEPT)->asImg(['class' => 'text-bottom']) ?>
-            <?= _('Forenthema vorhanden ') ?>
+            <?= _('Forenthema vorhanden') ?>
         <? else : ?>
             <input type="checkbox" name="forumthread" id="topic_forumthread" value="1">
             <?= _('Forenthema anlegen') ?>
@@ -77,13 +77,13 @@
     </fieldset>
     <footer data-dialog-button>
         <div class="button-group">
-            <?= \Studip\Button::createAccept(_("Speichern")) ?>
+            <?= \Studip\Button::createAccept(_('Speichern')) ?>
 
             <? if (!$topic->isNew()) : ?>
                 <?= \Studip\LinkButton::create(
                     _('Löschen'),
                     $controller->url_for('course/topics/delete/' . $topic->getId()),
-                    ['data-confirm' => _('Wirklich löschen?')]
+                    ['data-confirm' => _('Das Thema wirklich löschen?')]
                 ) ?>
             <? endif ?>
         </div>
diff --git a/app/views/course/topics/index.php b/app/views/course/topics/index.php
index 39635d17586..b0f5f48aadb 100644
--- a/app/views/course/topics/index.php
+++ b/app/views/course/topics/index.php
@@ -6,8 +6,8 @@
     </colgroup>
     <thead>
         <tr>
-            <th><?= _("Thema") ?></th>
-            <th><?= _("Termine") ?></th>
+            <th><?= _('Thema') ?></th>
+            <th><?= _('Termine') ?></th>
         </tr>
     </thead>
     <tbody>
@@ -43,11 +43,11 @@
                     <table class="default nohover">
                         <tbody>
                         <tr>
-                            <td><strong><?= _("Beschreibung") ?></strong></td>
+                            <td><strong><?= _('Beschreibung') ?></strong></td>
                             <td><?= formatReady($topic['description']) ?></td>
                         </tr>
                         <tr>
-                            <td><strong><?= _("Materialien") ?></strong></td>
+                            <td><strong><?= _('Materialien') ?></strong></td>
                             <td>
                                 <? $material = false ?>
                                 <ul class="clean">
@@ -58,7 +58,7 @@
                                                 'dispatch.php/course/files/index/' . $folder->id
                                                 ) ?>">
                                                 <?= $folder->getTypedFolder()->getIcon('clickable')->asImg(['class' => "text-bottom"]) ?>
-                                                <?= _("Dateiordner") ?>
+                                                <?= _('Dateiordner') ?>
                                             </a>
                                         </li>
                                         <? $material = true ?>
@@ -68,14 +68,14 @@
                                         <li>
                                             <a href="<?= URLHelper::getLink($link_to_thread) ?>">
                                                 <?= Icon::create('forum', 'clickable')->asImg(['class' => "text-bottom"]) ?>
-                                                <?= _("Thema im Forum") ?>
+                                                <?= _('Thema im Forum') ?>
                                             </a>
                                         </li>
                                         <? $material = true ?>
                                     <? endif ?>
                                 </ul>
                                 <? if (!$material) : ?>
-                                    <?= _("Keine Materialien zu dem Thema vorhanden") ?>
+                                    <?= _('Keine Materialien zu dem Thema vorhanden') ?>
                                 <? endif ?>
                             </td>
                         </tr>
@@ -93,12 +93,12 @@
                                 <?= Studip\Button::create(
                                     _('Löschen'),
                                     'delete',
-                                    ['data-confirm' => _('Wirklich löschen?')]
+                                    ['data-confirm' => _('Das Thema wirklich löschen?')]
                                 ) ?>
                             </form>
 
                             <? if (!$cancelled_dates_locked && $topic->dates->count()) : ?>
-                                <?= \Studip\LinkButton::create(_("Alle Termine ausfallen lassen"), URLHelper::getURL("dispatch.php/course/cancel_dates", ['issue_id' => $topic->getId()]), ['data-dialog' => '']) ?>
+                                <?= \Studip\LinkButton::create(_('Alle Termine ausfallen lassen'), URLHelper::getURL("dispatch.php/course/cancel_dates", ['issue_id' => $topic->getId()]), ['data-dialog' => '']) ?>
                             <? endif ?>
 
                             <span class="button-group">
-- 
GitLab