diff --git a/includes/pages/admin_news.php b/includes/pages/admin_news.php index 2c6e1f45..c7194e7c 100644 --- a/includes/pages/admin_news.php +++ b/includes/pages/admin_news.php @@ -75,7 +75,7 @@ function admin_news() { if (count($news) > 0) { list ($news) = $news; - sql_query("DELETE FROM `news` WHERE `ID`=" . sql_escape($id) . " LIMIT 1"); + sql_query("DELETE FROM `News` WHERE `ID`=" . sql_escape($id) . " LIMIT 1"); header("Location: " . page_link_to("news")); } else return error("No News found."); diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 2e7b95d2..c2648a78 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -8,7 +8,7 @@ function user_shifts() { header("Location: " . page_link_to('user_shifts')); sql_query("DELETE FROM `ShiftEntry` WHERE `id`=" . sql_escape($entry_id) . " LIMIT 1"); - return success("The shift entry has been deleted."); + return success("Der Schicht-Eintrag wurde gelöscht.."); } // Schicht komplett löschen (nur für admins/user mit user_shifts_admin privileg) elseif (isset ($_REQUEST['delete_shift']) && in_array('user_shifts_admin', $privileges)) { @@ -80,7 +80,7 @@ function user_shifts() { $comment = strip_request_item_nl('comment'); sql_query("INSERT INTO `ShiftEntry` SET `Comment`='" . sql_escape($comment) . "', `UID`=" . sql_escape($user_id) . ", `TID`=" . sql_escape($type_id) . ", `SID`=" . sql_escape($shift_id)); - return success("Now it's your shift. Thank you!") . 'View my shifts »'; + return success("Du bist eingetragen. Danke!") . 'Meine Schichten »'; } if (in_array('user_shifts_admin', $privileges)) { @@ -148,10 +148,10 @@ function user_shifts() { } if ($angeltype['count'] - count($entries) > 0) if (!$my_shift || in_array('user_shifts_admin', $privileges)) { - $entry_list[] = '' . ($angeltype['count'] - count($entries)) . ' angel' . ($angeltype['count'] - count($entries) != 1 ? 's' : '') . ' missing »'; + $entry_list[] = '' . ($angeltype['count'] - count($entries)) . ' Helfer' . ($angeltype['count'] - count($entries) != 1 ? '' : '') . ' gebraucht »'; $show_shift = true; } else - $entry_list[] = ($angeltype['count'] - count($entries)) . ' angel missing'; + $entry_list[] = ($angeltype['count'] - count($entries)) . ' Helfer gebraucht'; $shift_row .= '' . $angeltype['Name'] . ': '; $shift_row .= join(", ", $entry_list); @@ -191,9 +191,9 @@ function make_room_select($rooms, $id, $day) { $html[] = '' . $room['Name'] . ''; } if ($id == 0) - $html[] = 'Next 15 free shifts'; + $html[] = 'Nächste freie Schichten'; else - $html[] = 'Next 15 free shifts'; + $html[] = 'Nächste freie Schichten'; return join(' | ', $html); } ?> diff --git a/templates/user_shifts.html b/templates/user_shifts.html index 8d4ed12a..85f38112 100644 --- a/templates/user_shifts.html +++ b/templates/user_shifts.html @@ -1,17 +1,17 @@

- Select room: %room_select% + Raum: %room_select%

- Select day: %day_select% + Tag: %day_select%

- Timeslot + Zeit - Entries + Einträge