translated some pages to german

main
Philip Häusler 13 years ago
parent 3c33e23c3c
commit a5c6ad4393

@ -37,9 +37,9 @@ function user_myshifts() {
$shift = $shift[0]; $shift = $shift[0];
if (($shift['start'] - time() < $LETZTES_AUSTRAGEN * 60) || in_array('user_shifts_admin', $privileges)) { if (($shift['start'] - time() < $LETZTES_AUSTRAGEN * 60) || in_array('user_shifts_admin', $privileges)) {
sql_query("DELETE FROM `ShiftEntry` WHERE `id`=" . sql_escape($id) . " LIMIT 1"); sql_query("DELETE FROM `ShiftEntry` WHERE `id`=" . sql_escape($id) . " LIMIT 1");
$msg = success("Your shift has been canceled successfully."); $msg = success("Du wurdest aus der Schicht ausgetragen.");
} else } else
$msg = error("It's too late to cancel this shift.'"); $msg = error("Es ist zu spät um sich aus der Schicht auszutragen. Frage ggf. einen Orga.'");
} else } else
header("Location: " . page_link_to('user_myshifts')); header("Location: " . page_link_to('user_myshifts'));
} }
@ -56,14 +56,14 @@ function user_myshifts() {
$html .= '<td>' . $shift['name'] . '</td>'; $html .= '<td>' . $shift['name'] . '</td>';
$html .= '<td>' . $shift['Comment'] . '</td>'; $html .= '<td>' . $shift['Comment'] . '</td>';
$html .= '<td>'; $html .= '<td>';
$html .= '<a href="' . page_link_to('user_myshifts') . '&edit=' . $shift['id'] . '">edit</a>'; $html .= '<a href="' . page_link_to('user_myshifts') . '&edit=' . $shift['id'] . '">bearbeiten</a>';
if ($shift['start'] - time() > $LETZTES_AUSTRAGEN * 60) if ($shift['start'] - time() > $LETZTES_AUSTRAGEN * 60)
$html .= ' | <a href="' . page_link_to('user_myshifts') . '&cancel=' . $shift['id'] . '">cancel</a>'; $html .= ' | <a href="' . page_link_to('user_myshifts') . '&cancel=' . $shift['id'] . '">austragen</a>';
$html .= '</td>'; $html .= '</td>';
$html .= '</tr>'; $html .= '</tr>';
} }
if ($html == "") if ($html == "")
$html = '<tr><td>None...</td><td></td><td></td><td></td><td></td><td>Go to <a href="' . page_link_to('user_shifts') . '">Shifts</a> to sign up for a shift.</td></tr>'; $html = '<tr><td>Keine...</td><td></td><td></td><td></td><td></td><td>Gehe zum <a href="' . page_link_to('user_shifts') . '">Schichtplan</a> um Dich für Schichten einzutragen.</td></tr>';
return template_render('../templates/user_myshifts.html', array ( return template_render('../templates/user_myshifts.html', array (
'h' => $LETZTES_AUSTRAGEN, 'h' => $LETZTES_AUSTRAGEN,

@ -71,7 +71,7 @@ function make_menu() {
function make_onlineusers() { function make_onlineusers() {
global $privileges, $user; global $privileges, $user;
$html = '<nav class="container"><h4>Engel online</h4>'; $html = '<nav class="container"><h4>Helfer online</h4>';
$query = "SELECT UID, Nick, lastLogIn " . "FROM User " . "WHERE (`lastLogIn` > '" . (time() - 60 * 60) . "') " . "ORDER BY lastLogIn DESC"; $query = "SELECT UID, Nick, lastLogIn " . "FROM User " . "WHERE (`lastLogIn` > '" . (time() - 60 * 60) . "') " . "ORDER BY lastLogIn DESC";
$users = sql_select($query); $users = sql_select($query);

@ -1,33 +1,31 @@
<p> <p>
Hi, Hier sind Deine Schichten.
<br/> <br/>
here are the shifts you have signed up for. Versuche bitte <b>15 Minuten</b> vor Schichtbeginn anwesend zu sein!
<br/> <br/>
Please try to arrive for your shift on time. <b>Be punctual!</b> Du kannst Dich %h% Stunden vor Schichtbeginn noch aus Schichten wieder austragen.
<br/>
Here you can remove yourself from a shift up to %h% hours before your shift is scheduled to begin.
</p> </p>
%msg% %msg%
<table> <table>
<thead> <thead>
<tr> <tr>
<th> <th>
Day Tag
</th> </th>
<th> <th>
Time Zeit
</th> </th>
<th> <th>
Location Ort
</th> </th>
<th> <th>
Name Name
</th> </th>
<th> <th>
Comment Kommentar
</th> </th>
<th> <th>
Action Aktion
</th> </th>
</tr> </tr>
</thead> </thead>

@ -2,44 +2,44 @@
<fieldset> <fieldset>
<p> <p>
<label> <label>
Angel: Helfer:
</label> </label>
%angel% %angel%
</p> </p>
<p> <p>
<label> <label>
Date/Duration: Datum/Dauer:
</label> </label>
%date% %date%
</p> </p>
<p> <p>
<label> <label>
Location: Ort:
</label> </label>
%location% %location%
</p> </p>
<p> <p>
<label> <label>
Title: Titel:
</label> </label>
%title% %title%
</p> </p>
<p> <p>
<label> <label>
Type: Typ:
</label> </label>
%type% %type%
</p> </p>
<p> <p>
<label> <label>
Comment: Kommentar:
<br/> <br/>
(For your eyes only) (Nur für Dich)
</label> </label>
<textarea name="comment">%comment%</textarea> <textarea name="comment">%comment%</textarea>
</p> </p>
<p> <p>
<input type="submit" name="submit" value="Send" /> <input type="submit" name="submit" value="Speichern" />
</p> </p>
</fieldset> </fieldset>
</form> </form>
Loading…
Cancel
Save