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/list_bills.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'budget/templates/list_bills.html') diff --git a/budget/templates/list_bills.html b/budget/templates/list_bills.html index f37e1fe..0325a94 100644 --- a/budget/templates/list_bills.html +++ b/budget/templates/list_bills.html @@ -27,7 +27,7 @@ if ($(this).hasClass("confirm")){ return true; } - $(this).html("you sure?"); + $(this).html("{{_("you sure?")}}"); $(this).addClass("confirm"); return false; }); @@ -42,7 +42,7 @@ {% endblock %} {% block sidebar %} -

Balance

+

{{ _("Balance") }}

{% set balance = g.project.get_balance() %} @@ -53,7 +53,7 @@ - + {% endif %} {% endfor %} @@ -65,17 +65,17 @@ {% endblock %} {% block content %} -
The project identifier is {{ g.project.id }}, remember it or add this page to you bookmarks!
+
{{ _("The project identifier is") }} {{ g.project.id }}, {{ _("remember it or add this page to you bookmarks!") }}


-Add a new bill +{{ _("Add a new bill") }} - hide this form + {{ _("hide this form") }} {{ forms.add_bill(bill_form) }} {% if bills.count() > 0 %}
{% if balance[member] > 0 %}+{% endif %}{{ balance[member] }} {% if member.activated %}delete{% else %}reactivate{% endif %} {% if member.activated %}{{ _("delete") }}{% else %}{{ _("reactivate") }}{% endif %}
- + {% for bill in bills %} @@ -84,15 +84,15 @@ - + {% endfor %}
When?Who paid?For what?OwersHow much?Actions
{{ _("When?") }}{{ _("Who paid?") }}{{ _("For what?") }}{{ _("Owers") }}{{ _("How much?") }}{{ _("Actions") }}
{{ bill.what }} {% for ower in bill.owers %}{{ ower.name }} {% endfor %} {{ bill.amount }} ({{ bill.pay_each() }} each)edit - delete{{ _("edit") }} + {{ _("delete") }}
{% else %} -

Nothing to list yet. You probably want to add a bill ?

+

{{ _("Nothing to list yet. You probably want to") }} {{ _("add a bill") }} ?

{% endif %} {% endblock %} -- cgit v1.1