summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/pages/user_myshifts.php10
-rw-r--r--includes/sys_menu.php2
-rw-r--r--templates/user_myshifts.html18
-rw-r--r--templates/user_shifts_add.html16
4 files changed, 22 insertions, 24 deletions
diff --git a/includes/pages/user_myshifts.php b/includes/pages/user_myshifts.php
index 9d5b25d6..9f344d6d 100644
--- a/includes/pages/user_myshifts.php
+++ b/includes/pages/user_myshifts.php
@@ -37,9 +37,9 @@ function user_myshifts() {
$shift = $shift[0];
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");
- $msg = success("Your shift has been canceled successfully.");
+ $msg = success("Du wurdest aus der Schicht ausgetragen.");
} 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
header("Location: " . page_link_to('user_myshifts'));
}
@@ -56,14 +56,14 @@ function user_myshifts() {
$html .= '<td>' . $shift['name'] . '</td>';
$html .= '<td>' . $shift['Comment'] . '</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)
- $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 .= '</tr>';
}
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 (
'h' => $LETZTES_AUSTRAGEN,
diff --git a/includes/sys_menu.php b/includes/sys_menu.php
index b1a4d53d..448323e1 100644
--- a/includes/sys_menu.php
+++ b/includes/sys_menu.php
@@ -71,7 +71,7 @@ function make_menu() {
function make_onlineusers() {
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";
$users = sql_select($query);
diff --git a/templates/user_myshifts.html b/templates/user_myshifts.html
index 750607ce..9aee533d 100644
--- a/templates/user_myshifts.html
+++ b/templates/user_myshifts.html
@@ -1,33 +1,31 @@
<p>
- Hi,
+ Hier sind Deine Schichten.
<br/>
- here are the shifts you have signed up for.
+ Versuche bitte <b>15 Minuten</b> vor Schichtbeginn anwesend zu sein!
<br/>
- Please try to arrive for your shift on time. <b>Be punctual!</b>
- <br/>
- Here you can remove yourself from a shift up to %h% hours before your shift is scheduled to begin.
+ Du kannst Dich %h% Stunden vor Schichtbeginn noch aus Schichten wieder austragen.
</p>
%msg%
<table>
<thead>
<tr>
<th>
- Day
+ Tag
</th>
<th>
- Time
+ Zeit
</th>
<th>
- Location
+ Ort
</th>
<th>
Name
</th>
<th>
- Comment
+ Kommentar
</th>
<th>
- Action
+ Aktion
</th>
</tr>
</thead>
diff --git a/templates/user_shifts_add.html b/templates/user_shifts_add.html
index 52245790..a22f8791 100644
--- a/templates/user_shifts_add.html
+++ b/templates/user_shifts_add.html
@@ -2,44 +2,44 @@
<fieldset>
<p>
<label>
- Angel:
+ Helfer:
</label>
%angel%
</p>
<p>
<label>
- Date/Duration:
+ Datum/Dauer:
</label>
%date%
</p>
<p>
<label>
- Location:
+ Ort:
</label>
%location%
</p>
<p>
<label>
- Title:
+ Titel:
</label>
%title%
</p>
<p>
<label>
- Type:
+ Typ:
</label>
%type%
</p>
<p>
<label>
- Comment:
+ Kommentar:
<br/>
- (For your eyes only)
+ (Nur für Dich)
</label>
<textarea name="comment">%comment%</textarea>
</p>
<p>
- <input type="submit" name="submit" value="Send" />
+ <input type="submit" name="submit" value="Speichern" />
</p>
</fieldset>
</form> \ No newline at end of file