# HG changeset patch # User Goffi # Date 1495375844 -7200 # Node ID 8fa2fd2e928e37b2602dc610c5d62d3f1cd3657f # Parent 422c54e0204a31100bc4feae66fd1f174d97ffab default: added i18n support diff -r 422c54e0204a -r 8fa2fd2e928e default/base/base.html --- a/default/base/base.html Fri May 19 12:59:43 2017 +0200 +++ b/default/base/base.html Sun May 21 16:10:44 2017 +0200 @@ -29,6 +29,6 @@ {% block body %} {% endblock body %} - + diff -r 422c54e0204a -r 8fa2fd2e928e default/blog/articles.html --- a/default/blog/articles.html Fri May 19 12:59:43 2017 +0200 +++ b/default/blog/articles.html Sun May 21 16:10:44 2017 +0200 @@ -11,7 +11,7 @@ {# we recursively display comments for all comments nodes (usually there's only one) #} {% for comments_items in item.comments_items_list %} - +
{% if allow_commenting %}
diff -r 422c54e0204a -r 8fa2fd2e928e default/blog/item.html --- a/default/blog/item.html Fri May 19 12:59:43 2017 +0200 +++ b/default/blog/item.html Sun May 21 16:10:44 2017 +0200 @@ -1,5 +1,3 @@ -{% import 'script/css.js' as css %} - {% block item %}
@@ -23,7 +21,7 @@

- Click to to expand… + {% trans %}Click to to expand…{% endtrans %}

diff -r 422c54e0204a -r 8fa2fd2e928e default/error/401.html --- a/default/error/401.html Fri May 19 12:59:43 2017 +0200 +++ b/default/error/401.html Sun May 21 16:10:44 2017 +0200 @@ -1,6 +1,6 @@ {% extends 'error/base.html' %} {% block body %} -

Unauthorized

-

Sorry, you are not allowed to access this page.

+

{% trans %}Unauthorized{% endtrans %}

+

{% trans %}Sorry, you are not allowed to access this page.{% endtrans %}

{% endblock body %} diff -r 422c54e0204a -r 8fa2fd2e928e default/error/404.html --- a/default/error/404.html Fri May 19 12:59:43 2017 +0200 +++ b/default/error/404.html Sun May 21 16:10:44 2017 +0200 @@ -1,6 +1,6 @@ {% extends 'error/base.html' %} {% block body %} -

Not Found

-

Sorry, we can't find the resource you are trying to access.

+

{% trans %}Not Found{% endtrans %}

+

{% trans %}Sorry, we can't find the resource you are trying to access.{% endtrans %}

{% endblock body %} diff -r 422c54e0204a -r 8fa2fd2e928e default/error/base.html --- a/default/error/base.html Fri May 19 12:59:43 2017 +0200 +++ b/default/error/base.html Sun May 21 16:10:44 2017 +0200 @@ -1,7 +1,7 @@ {% extends 'base/base.html' %} -{% block title %}Error {{error_code}}{% endblock %} +{% block title %}{% trans %}Error {{error_code}}{% endtrans %}{% endblock %} {% block body %} -An error occured while trying to access the resource. +{% trans %}An error occured while trying to access the resource.{% endtrans %} {% endblock body %} {% block footer %}{% endblock %} diff -r 422c54e0204a -r 8fa2fd2e928e default/event/attendance.html --- 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 %}
-

Please indicate if you plan to attend the event:

+

{% trans %}Please indicate if you plan to attend the event:{% endtrans %}

{% call form.form() %} {{ field.meta("type", "attendance") }} {{ field.meta("service", event.invitees_service) }} {{ field.meta("node", event.invitees_node) }}
- {{ field.choices("attend", ("yes", "no", "maybe"), checked=invitee.attend) }} + {{ field.choices("attend", (("yes", _("yes")), ("no", _("no")), ("maybe", _("maybe"))), checked=invitee.attend) }}
- {{ 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)) }}
{{ field.submit() }} diff -r 422c54e0204a -r 8fa2fd2e928e default/event/invitation.html --- a/default/event/invitation.html Fri May 19 12:59:43 2017 +0200 +++ b/default/event/invitation.html Sun May 21 16:10:44 2017 +0200 @@ -2,8 +2,8 @@ {% block body %}
-

Welcome {{name}}

-

You have been invited to participate to an event

+

{% trans %}Welcome {{name}}{% endtrans %}

+

{% trans %}You have been invited to participate to an event{% endtrans %}

{% if event.image is defined %}

{% endif %} diff -r 422c54e0204a -r 8fa2fd2e928e default/input/comment.html --- a/default/input/comment.html Fri May 19 12:59:43 2017 +0200 +++ b/default/input/comment.html Sun May 21 16:10:44 2017 +0200 @@ -8,11 +8,11 @@ {% endmacro %} {% macro body(rows=10, cols=50) %} - + {% endmacro %} {% macro submit() %} - + {% endmacro %} {% macro comment(service, node, action='') %} diff -r 422c54e0204a -r 8fa2fd2e928e default/input/field.html --- a/default/input/field.html Fri May 19 12:59:43 2017 +0200 +++ b/default/input/field.html Sun May 21 16:10:44 2017 +0200 @@ -1,7 +1,7 @@ {% macro choices(name, choices_list, checked=none) %} - {% for choice in choices_list %} + {% for choice, label in choices_list %}
- +
{% endfor %} {% endmacro %} @@ -17,5 +17,5 @@ {% endmacro %} {% macro submit() %} - + {% endmacro %} diff -r 422c54e0204a -r 8fa2fd2e928e default/invitation/welcome.html --- a/default/invitation/welcome.html Fri May 19 12:59:43 2017 +0200 +++ b/default/invitation/welcome.html Sun May 21 16:10:44 2017 +0200 @@ -2,8 +2,8 @@ {% block body %}
-

Welcome {{name}}

-

You have been invited to participate with the community, please choose an action below

+

{% trans %}Welcome {{name}}{% endtrans %}

+

{% trans %}You have been invited to participate with the community, please choose an action below{% endtrans %}

{% if include_url is defined %}