From 06ff126e40d29801ab25dce09d29506ecd668967 Mon Sep 17 00:00:00 2001
From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de>
Date: Wed, 26 Feb 2025 11:12:11 +0100
Subject: [PATCH] fix typos, fixes #280

---
 controllers/sheets.php                |  2 +-
 views/config/index.php                |  4 ++--
 views/exercises/rh_exercise/edit.php  | 10 +++++-----
 views/pool/list_assignments.php       |  2 +-
 views/sheets/copy_exercise_dialog.php |  2 +-
 views/sheets/edit_assignment.php      |  4 ++--
 6 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/controllers/sheets.php b/controllers/sheets.php
index 6e81c8c..7d767e2 100644
--- a/controllers/sheets.php
+++ b/controllers/sheets.php
@@ -1848,7 +1848,7 @@ class SheetsController extends StudipController
                                htmlReady($assignment->test->title), $num_exercises);
             PageLayout::postSuccess($message);
         } else if ($num_assignments > 1) {
-            $message = sprintf('%d Aufgabenblätter mit insgesamt %d Aufgaben wurden hinzugefügt.', $num_assignments, $num_exercises);
+            $message = sprintf(_vips('%d Aufgabenblätter mit insgesamt %d Aufgaben wurden hinzugefügt.'), $num_assignments, $num_exercises);
             PageLayout::postSuccess($message);
         }
 
diff --git a/views/config/index.php b/views/config/index.php
index af76a73..6451b3c 100644
--- a/views/config/index.php
+++ b/views/config/index.php
@@ -65,7 +65,7 @@
                         </td>
                         <td class="actions">
                             <a href="#" class="delete_dynamic_row">
-                                <?= Icon::create('trash', 'clickable', ['title' => _vips('Eintrag Löschen')]) ?>
+                                <?= Icon::create('trash', 'clickable', ['title' => _vips('Eintrag löschen')]) ?>
                             </a>
                         </td>
                     </tr>
@@ -80,7 +80,7 @@
                     </td>
                     <td class="actions">
                         <a href="#" class="delete_dynamic_row">
-                            <?= Icon::create('trash', 'clickable', ['title' => _vips('Eintrag Löschen')]) ?>
+                            <?= Icon::create('trash', 'clickable', ['title' => _vips('Eintrag löschen')]) ?>
                         </a>
                     </td>
                 </tr>
diff --git a/views/exercises/rh_exercise/edit.php b/views/exercises/rh_exercise/edit.php
index 8ae75d3..18302d7 100644
--- a/views/exercises/rh_exercise/edit.php
+++ b/views/exercises/rh_exercise/edit.php
@@ -24,7 +24,7 @@
                     <?= $this->render_partial('exercises/flexible_input', ['name' => "default[$i]", 'value' => $group, 'size' => $size]) ?>
 
                     <a href="#" class="delete_dynamic_row">
-                        <?= Icon::create('trash', 'clickable', ['title' => _vips('Zuordnung Löschen')]) ?>
+                        <?= Icon::create('trash', 'clickable', ['title' => _vips('Zuordnung löschen')]) ?>
                     </a>
                 </td>
                 <td class="dynamic_list">
@@ -38,7 +38,7 @@
                                 <input type="hidden" name="id[<?= $i ?>][<?= $j++ ?>]" value="<?= $answer['id'] ?>">
 
                                 <a href="#" class="delete_dynamic_row">
-                                    <?= Icon::create('trash', 'clickable', ['title' => _vips('Antwort Löschen')]) ?>
+                                    <?= Icon::create('trash', 'clickable', ['title' => _vips('Antwort löschen')]) ?>
                                 </a>
                             </div>
                         <? endif ?>
@@ -49,7 +49,7 @@
                         <input type="hidden" data-name="id[<?= $i ?>]">
 
                         <a href="#" class="delete_dynamic_row">
-                            <?= Icon::create('trash', 'clickable', ['title' => _vips('Antwort Löschen')]) ?>
+                            <?= Icon::create('trash', 'clickable', ['title' => _vips('Antwort löschen')]) ?>
                         </a>
                     </div>
 
@@ -63,7 +63,7 @@
                 <?= $this->render_partial('exercises/flexible_input', ['data_name' => 'default', 'size' => 'small']) ?>
 
                 <a href="#" class="delete_dynamic_row">
-                    <?= Icon::create('trash', 'clickable', ['title' => _vips('Zuordnung Löschen')]) ?>
+                    <?= Icon::create('trash', 'clickable', ['title' => _vips('Zuordnung löschen')]) ?>
                 </a>
             </td>
             <td class="dynamic_list">
@@ -72,7 +72,7 @@
                     <input type="hidden" data-name=":id">
 
                     <a href="#" class="delete_dynamic_row">
-                        <?= Icon::create('trash', 'clickable', ['title' => _vips('Antwort Löschen')]) ?>
+                        <?= Icon::create('trash', 'clickable', ['title' => _vips('Antwort löschen')]) ?>
                     </a>
                 </div>
 
diff --git a/views/pool/list_assignments.php b/views/pool/list_assignments.php
index 3ace918..e4774bd 100644
--- a/views/pool/list_assignments.php
+++ b/views/pool/list_assignments.php
@@ -45,7 +45,7 @@
                 </th>
 
                 <th style="width: 10%;" class="<?= vips_sort_class($sort === 'start_time', $desc) ?>">
-                    <a sem_name href="<?= $controller->link_for('pool/assignments', ['sort' => 'start_time', 'desc' => $sort === 'start_time' && !$desc, 'search_filter' => $search_filter]) ?>">
+                    <a href="<?= $controller->link_for('pool/assignments', ['sort' => 'start_time', 'desc' => $sort === 'start_time' && !$desc, 'search_filter' => $search_filter]) ?>">
                         <?= _vips('Semester') ?>
                     </a>
                 </th>
diff --git a/views/sheets/copy_exercise_dialog.php b/views/sheets/copy_exercise_dialog.php
index 13d0313..1feb80f 100644
--- a/views/sheets/copy_exercise_dialog.php
+++ b/views/sheets/copy_exercise_dialog.php
@@ -30,7 +30,7 @@
     <span style="margin-left: 1em;">
         <?= Studip\Button::create(_vips('Suchen'), 'start_search', ['data-dialog' => 'size=big', 'formaction' => $controller->url_for('sheets/copy_exercise_dialog')]) ?>
         <?= Studip\Button::create(_vips('Zurücksetzen'), 'reset_search', ['data-dialog' => 'size=big', 'formaction' => $controller->url_for('sheets/copy_exercise_dialog')]) ?>
-    </div>
+    </span>
 
     <? if ($count): ?>
         <table class="default">
diff --git a/views/sheets/edit_assignment.php b/views/sheets/edit_assignment.php
index 99222af..a598aee 100644
--- a/views/sheets/edit_assignment.php
+++ b/views/sheets/edit_assignment.php
@@ -207,7 +207,7 @@
                                     </td>
                                     <td class="actions">
                                         <a href="#" class="delete_dynamic_row">
-                                            <?= Icon::create('trash', 'clickable', ['title' => _vips('Eintrag Löschen')]) ?>
+                                            <?= Icon::create('trash', 'clickable', ['title' => _vips('Eintrag löschen')]) ?>
                                         </a>
                                     </td>
                                 </tr>
@@ -223,7 +223,7 @@
                             </td>
                             <td class="actions">
                                 <a href="#" class="delete_dynamic_row">
-                                    <?= Icon::create('trash', 'clickable', ['title' => _vips('Eintrag Löschen')]) ?>
+                                    <?= Icon::create('trash', 'clickable', ['title' => _vips('Eintrag löschen')]) ?>
                                 </a>
                             </td>
                         </tr>
-- 
GitLab