From aad54bfe885e2ce69801597c791bff4b7f0e1521 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Mon, 25 Nov 2013 21:04:58 +0100 Subject: basic gettext integration --- includes/pages/user_wakeup.php | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'includes/pages/user_wakeup.php') diff --git a/includes/pages/user_wakeup.php b/includes/pages/user_wakeup.php index 63aff97c..4ac5c0b7 100644 --- a/includes/pages/user_wakeup.php +++ b/includes/pages/user_wakeup.php @@ -1,4 +1,8 @@ 0 && $wakeup[0]['UID'] == $user['UID']) { sql_query("DELETE FROM `Wecken` WHERE `ID`=" . sql_escape($id) . " LIMIT 1"); - $html .= success("Wake-up call deleted.", true); + $html .= success(_("Wake-up call deleted."), true); } else - return error("No wake-up found.", true); + return error(_("No wake-up found."), true); break; } } - $html .= "

" . Get_Text("Hello") . User_Nick_render($user) . ",
" - . Get_Text("pub_wake_beschreibung") . "

\n\n"; - $html .= Get_Text("pub_wake_beschreibung2"); + $html .= '

' . sprintf(_("Hello %s, here you can register for a wake-up call. Simply say when and where the angel should come to wake you."), User_Nick_render($user)) . '

'; + $html .= _("All ordered wake-up calls, next first."); $html .= ' - - - - + + + + '; @@ -65,22 +68,22 @@ function user_wakeup() { $html .= ''; $html .= ''; if ($wecken['UID'] == $user['UID']) - $html .= ''; + $html .= ''; else $html .= ''; $html .= ''; } - $html .= '
' . Get_Text("pub_wake_Datum") . '' . Get_Text("pub_waeckliste_Nick") . '' . Get_Text("pub_wake_Ort") . '' . Get_Text("pub_wake_Bemerkung") . '' . _("Date") . '' . _("Nick") . '' . _("Place") . '' . _("Notes") . '
' . $wecken['Ort'] . ' ' . $wecken['Bemerkung'] . ' " . Get_Text("pub_wake_del") . '" . _("delete") . '

' . Get_Text("pub_wake_Text2"); + $html .= '
' . _("Schedule a new wake-up here:"); $html .= template_render('../templates/user_wakeup.html', array ( 'wakeup_link' => page_link_to("user_wakeup"), - 'date_text' => Get_Text("pub_wake_Datum"), + 'date_text' => _("Date"), 'date_value' => date("Y-m-d H:i"), - 'place_text' => Get_Text("pub_wake_Ort"), - 'comment_text' => Get_Text("pub_wake_Bemerkung"), + 'place_text' => _("Place"), + 'comment_text' => _("Notes"), 'comment_value' => "Knock knock Leo, follow the white rabbit to the blue tent", - 'submit_text' => Get_Text("pub_wake_bouton") + 'submit_text' => _("Save") )); return $html; } -- cgit v1.2.3-54-g00ecf