diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-15 01:19:19 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-10-15 01:19:19 +0200 |
| commit | f61d1432c7b57da5725a94c7b308ebacfe0af085 (patch) | |
| tree | 74f2270c6f9bde7f5661d295253d3000e397b079 /budget/templates/forms.html | |
| parent | 45ccc8b509bc27f1301490272d71278a08bebe10 (diff) | |
| download | ihatemoney-mirror-f61d1432c7b57da5725a94c7b308ebacfe0af085.zip ihatemoney-mirror-f61d1432c7b57da5725a94c7b308ebacfe0af085.tar.gz ihatemoney-mirror-f61d1432c7b57da5725a94c7b308ebacfe0af085.tar.bz2 | |
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
Diffstat (limited to 'budget/templates/forms.html')
| -rw-r--r-- | budget/templates/forms.html | 16 |
1 files changed, 8 insertions, 8 deletions
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 @@ <div class="actions"> <button type="submit" class="btn primary">{{ field.name }}</button> {% if home %} - <a href="{{ url_for(".remind_password") }}">Can't remember the password?</a> + <a href="{{ url_for(".remind_password") }}">{{ _("Can't remember the password?") }}</a> {% endif %} {% if cancel %} - <button id="cancel-form" type="reset" class="btn">Cancel</button> + <button id="cancel-form" type="reset" class="btn">{{ _("Cancel") }}</button> {% endif %} </div> {% endmacro %} @@ -72,7 +72,7 @@ {% macro add_bill(form, edit=False) %} <fieldset> - <legend>{% if edit %}Edit this {% else %}Add a {% endif %}bill</legend> + <legend>{% if edit %}{{ _("Edit this bill") }} {% else %}{{ _("Add a bill") }} {% endif %}</legend> {% include "display_errors.html" %} {{ form.hidden_tag() }} {{ input(form.date) }} @@ -88,7 +88,7 @@ {% macro add_member(form) %} {{ form.hidden_tag() }} {{ form.name }} - <button class="btn">Add a new user</button> + <button class="btn">{{ _("Add a new user") }}</button> {% endmacro %} @@ -96,20 +96,20 @@ {{ form.hidden_tag() }} {{ input(form.emails) }} <div class="actions"> - <button class="btn primary">Send the invitations</button> - <a href="{{ url_for(".list_bills") }}">No, thanks</a> + <button class="btn primary">{{ _("Send the invitations") }}</button> + <a href="{{ url_for(".list_bills") }}">{{ _("No, thanks") }}</a> </div> {% endmacro %} {% macro create_archive(form) %} <fieldset> - <legend>Create an archive</legend> + <legend>{{ _("Create an archive") }}</legend> {{ form.hidden_tag() }} {{ input(form.start_date) }} {{ input(form.end_date) }} </fieldset> <div class="actions"> - <button class="btn">Create the archive</button> + <button class="btn">{{ _("Create the archive") }}</button> </div> {% endmacro %} |
