diff default/event/attendance.html @ 20:8fa2fd2e928e

default: added i18n support
author Goffi <goffi@goffi.org>
date Sun, 21 May 2017 16:10:44 +0200
parents 422c54e0204a
children eb9a42fca6c8
line wrap: on
line diff
--- a/default/event/attendance.html	Fri May 19 12:59:43 2017 +0200
+++ b/default/event/attendance.html	Sun May 21 16:10:44 2017 +0200
@@ -2,16 +2,16 @@
 {% import 'input/field.html' as field with context %}
 
 <div class="attendance box">
-    <p class="poll_instructions">Please indicate if you plan to attend the event:</p>
+    <p class="poll_instructions">{% trans %}Please indicate if you plan to attend the event:{% endtrans %}</p>
     {% call form.form() %}
         {{ field.meta("type", "attendance") }}
         {{ field.meta("service", event.invitees_service) }}
         {{ field.meta("node", event.invitees_node) }}
         <div class="attending">
-            {{ field.choices("attend", ("yes", "no", "maybe"), checked=invitee.attend) }}
+            {{ field.choices("attend", (("yes", _("yes")), ("no", _("no")), ("maybe", _("maybe"))), checked=invitee.attend) }}
         </div>
         <div class="guests">
-            {{ field.int("guests", label="How many people will come (including you)?", init=invitee.get("guests", 1)) }}
+            {{ field.int("guests", label=_("How many people will come (including you)?"), init=invitee.get("guests", 1)) }}
         </div>
         <div class="submit">
             {{ field.submit() }}