From f61d1432c7b57da5725a94c7b308ebacfe0af085 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Sat, 15 Oct 2011 01:19:19 +0200 Subject: Translate the application using Flask-babel. The only translation so far is french, but more can be added. The browser language is used thanks to the HTTP languages headers. There are still some problems with the translation of some strings, I don't know why this is. See #12 --- budget/templates/forms.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'budget/templates/forms.html') diff --git a/budget/templates/forms.html b/budget/templates/forms.html index beb714b..3a3d5ba 100644 --- a/budget/templates/forms.html +++ b/budget/templates/forms.html @@ -21,10 +21,10 @@
{% if home %} - Can't remember the password? + {{ _("Can't remember the password?") }} {% endif %} {% if cancel %} - + {% endif %}
{% endmacro %} @@ -72,7 +72,7 @@ {% macro add_bill(form, edit=False) %}
- {% if edit %}Edit this {% else %}Add a {% endif %}bill + {% if edit %}{{ _("Edit this bill") }} {% else %}{{ _("Add a bill") }} {% endif %} {% include "display_errors.html" %} {{ form.hidden_tag() }} {{ input(form.date) }} @@ -88,7 +88,7 @@ {% macro add_member(form) %} {{ form.hidden_tag() }} {{ form.name }} - + {% endmacro %} @@ -96,20 +96,20 @@ {{ form.hidden_tag() }} {{ input(form.emails) }}
- - No, thanks + + {{ _("No, thanks") }}
{% endmacro %} {% macro create_archive(form) %}
- Create an archive + {{ _("Create an archive") }} {{ form.hidden_tag() }} {{ input(form.start_date) }} {{ input(form.end_date) }}
- +
{% endmacro %} -- cgit v1.1