aboutsummaryrefslogtreecommitdiff
path: root/budget/templates
diff options
context:
space:
mode:
Diffstat (limited to 'budget/templates')
-rw-r--r--budget/templates/add_bill.html2
-rw-r--r--budget/templates/authenticate.html4
-rw-r--r--budget/templates/create_project.html2
-rw-r--r--budget/templates/edit_bill.html4
-rw-r--r--budget/templates/edit_project.html2
-rw-r--r--budget/templates/forms.html16
-rw-r--r--budget/templates/home.html16
-rw-r--r--budget/templates/invitation_mail.en (renamed from budget/templates/invitation_mail)0
-rw-r--r--budget/templates/invitation_mail.fr9
-rw-r--r--budget/templates/layout.html18
-rw-r--r--budget/templates/list_bills.html20
-rw-r--r--budget/templates/password_reminder.en (renamed from budget/templates/password_reminder)0
-rw-r--r--budget/templates/password_reminder.fr7
-rw-r--r--budget/templates/password_reminder.html2
-rw-r--r--budget/templates/recent_projects.html2
-rw-r--r--budget/templates/reminder_mail.en (renamed from budget/templates/reminder_mail)0
-rw-r--r--budget/templates/reminder_mail.fr8
-rw-r--r--budget/templates/send_invites.html14
18 files changed, 75 insertions, 51 deletions
diff --git a/budget/templates/add_bill.html b/budget/templates/add_bill.html
index 3b29896..6349730 100644
--- a/budget/templates/add_bill.html
+++ b/budget/templates/add_bill.html
@@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% block top_menu %}
-<a href="{{ url_for(".list_bills") }}">Back to the list</a>
+<a href="{{ url_for(".list_bills") }}">{{ _("Back to the list") }}</a>
{% endblock %}
{% block content %}
diff --git a/budget/templates/authenticate.html b/budget/templates/authenticate.html
index 83839e1..7af2440 100644
--- a/budget/templates/authenticate.html
+++ b/budget/templates/authenticate.html
@@ -3,8 +3,8 @@
<h2>Authentication</h2>
{% if create_project %}
-<p class="info">The project you are trying to access do not exist, do you want
-to <a href="{{ url_for(".create_project", project_id=create_project) }}">create it</a>?
+<p class="info">{{ _("The project you are trying to access do not exist, do you want
+to") }} <a href="{{ url_for(".create_project", project_id=create_project) }}">{{ _("create it") }}</a>{{ _("?") }}
</p>
{% endif %}
<form action="" method="POST" accept-charset="utf-8">
diff --git a/budget/templates/create_project.html b/budget/templates/create_project.html
index 41b8fd0..cbf1622 100644
--- a/budget/templates/create_project.html
+++ b/budget/templates/create_project.html
@@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% block content %}
-<h2>Create a new project</h2>
+<h2>{{ _("Create a new project") }}</h2>
<form method="post">
{{ forms.create_project(form) }}
</form>
diff --git a/budget/templates/edit_bill.html b/budget/templates/edit_bill.html
index 9c272ae..cb55d69 100644
--- a/budget/templates/edit_bill.html
+++ b/budget/templates/edit_bill.html
@@ -1,11 +1,11 @@
{% extends "layout.html" %}
{% block top_menu %}
-<a href="{{ url_for(".list_bills") }}">Back to the list</a>
+<a href="{{ url_for(".list_bills") }}">{{ _("Back to the list") }}</a>
{% endblock %}
{% block content %}
-<h2>Edit a bill</h2>
+<h2>{{ _("Edit a bill") }}</h2>
<div class="container span-24 add-bill uniForm" style="width: 400px">
<form action="" method="post" class=uniForm">
diff --git a/budget/templates/edit_project.html b/budget/templates/edit_project.html
index c69045d..0349fe7 100644
--- a/budget/templates/edit_project.html
+++ b/budget/templates/edit_project.html
@@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% block content %}
-<h2>Edit this project</h2>
+<h2>{{ _("Edit this project") }}</h2>
<form method="post">
{{ forms.edit_project(form) }}
</form>
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 %}
diff --git a/budget/templates/home.html b/budget/templates/home.html
index bf74767..1073a49 100644
--- a/budget/templates/home.html
+++ b/budget/templates/home.html
@@ -6,11 +6,11 @@
{% block header %}
<div id="header">
<div class="slide">
- <h1><span>Manage your shared <br>expenses, easily</span></h1>
- <a href="{{ url_for(".demo") }}" class="about_link">Try out the demo</a>
+ <h1><span>{{ _("Manage your shared <br>expenses, easily") }}</span></h1>
+ <a href="{{ url_for(".demo") }}" class="about_link">{{ _("Try out the demo") }}</a>
</div>
<div class="additional-content">
- <p>You're sharing a house?<br /> Going on holidays with friends?<br /> Simply sharing money with others? <br /><strong>We can help!</strong></p>
+ <p>{{ _("You're sharing a house?") }}<br /> {{ _("Going on holidays with friends?") }}<br /> {{ _("Simply sharing money with others?") }} <br /><strong>{{ _("We can help!") }}</strong></p>
</div>
</div>
@@ -23,17 +23,17 @@
<div class="row">
<div class="span8 columns">
<form action="{{ url_for(".authenticate") }}" method="post">
- <h3>Log to an existing project...</h3>
+ <h3>{{ _("Log to an existing project") }}...</h3>
{{ forms.authenticate(auth_form, home=True) }}
- <button class="btn">log in</button>
- <a class="password-reminder" href="{{ url_for(".remind_password") }}">can't remember your password?</a>
+ <button class="btn">{{ _("log in") }}</button>
+ <a class="password-reminder" href="{{ url_for(".remind_password") }}">{{ _("can't remember your password?") }}</a>
</form>
</div>
<div class="span8 columns">
<form class="create" action="{{ url_for(".create_project") }}" method="post">
- <h3>...or create a new one</h3>
+ <h3>...{{ _("or create a new one") }}</h3>
{{ forms.create_project(project_form, home=True) }}
- <button class="btn">let's get started</button>
+ <button class="btn">{{ _("let's get started") }}</button>
</form>
</div>
</div>
diff --git a/budget/templates/invitation_mail b/budget/templates/invitation_mail.en
index 4f5bbf0..4f5bbf0 100644
--- a/budget/templates/invitation_mail
+++ b/budget/templates/invitation_mail.en
diff --git a/budget/templates/invitation_mail.fr b/budget/templates/invitation_mail.fr
new file mode 100644
index 0000000..3a2b956
--- /dev/null
+++ b/budget/templates/invitation_mail.fr
@@ -0,0 +1,9 @@
+Salut,
+
+Quelqu'un avec l'addresse email "{{ g.project.contact_email }}" vuos à invité à partager vos dépenses pour "{{ g.project.name }}".
+
+C'est aussi simple que de dire qui à payé pour quoi, pour qui, et combien celà à coûté, on s'occuppe du reste.
+
+Vous pouvez accéder à la page ici: {{ config['SITE_URL'] }}{{ url_for(".list_bills") }}, le code est "{{ g.project.password }}".
+
+Have fun,
diff --git a/budget/templates/layout.html b/budget/templates/layout.html
index 2b7c11e..1406bd9 100644
--- a/budget/templates/layout.html
+++ b/budget/templates/layout.html
@@ -2,7 +2,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>Account manager</title>
+ <title>{{ _("Account manager") }}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel=stylesheet type=text/css href="{{ url_for("static", filename='main.css') }}">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
@@ -45,23 +45,23 @@
<h3><a class="logo" href="{% if g.project %}{{ url_for(".list_bills") }}{% endif %}">#! money?</a></h3>
{% if g.project %}
<ul>
- <li class="active"><a href="">Bills</a></li>
- <li><a href="">Archives</a></li>
+ <li class="active"><a href="">{{ _("Bills") }}</a></li>
+ <li><a href="">{{ _("Archives") }}</a></li>
</ul>
<ul class="nav secondary-nav">
<li class="menu">
- <a href="#" class="menu"><strong>{{ g.project.name }}</strong> options</a>
+ <a href="#" class="menu"><strong>{{ g.project.name }}</strong> {{ _("options") }}</a>
<ul class="menu-dropdown" style="display: none; ">
- <li><a href="{{ url_for(".edit_project") }}">Project settings</a></li>
+ <li><a href="{{ url_for(".edit_project") }}">{{ _("Project settings") }}</a></li>
<li class="divider"></li>
{% for id, name in session['projects'] %}
{% if id != g.project.id %}
- <li><a href="{{ url_for(".list_bills", project_id=id) }}">switch to {{ name }}</a></li>
+ <li><a href="{{ url_for(".list_bills", project_id=id) }}">{{ _("switch to") }} {{ name }}</a></li>
{% endif %}
{% endfor %}
- <li><a href="{{ url_for(".create_project") }}">Start a new project</a></li>
+ <li><a href="{{ url_for(".create_project") }}">{{ _("Start a new project") }}</a></li>
<li class="divider"></li>
- <li><a href="{{ url_for(".exit") }}">Logout</a></li>
+ <li><a href="{{ url_for(".exit") }}">{{ _("Logout") }}</a></li>
</ul>
</li>
</ul>
@@ -82,7 +82,7 @@
{% endblock %}
{% block footer %}
<div id="footer">
- <p><a href="https://github.com/ametaireau/budget-manager">This is a free software</a>, you can contribute and improve it!</p>
+ <p><a href="https://github.com/ametaireau/budget-manager">{{ _("This is a free software") }}</a>, {{ _("you can contribute and improve it!") }}</p>
</div>
{% endblock %}
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 %}
- <h2>Balance</h2>
+<h2>{{ _("Balance") }}</h2>
<table class="balance">
{% set balance = g.project.get_balance() %}
@@ -53,7 +53,7 @@
<td class="{% if balance[member] > 0 %}positive{% elif balance[member] < 0 %}negative{% endif %}">
{% if balance[member] > 0 %}+{% endif %}{{ balance[member] }}
</td>
- <td> {% if member.activated %}<a class="remove" href="{{ url_for(".remove_member", member_id=member.id) }}">delete</a>{% else %}<a href="{{ url_for(".reactivate", member_id=member.id) }}">reactivate</a>{% endif %}</td>
+ <td> {% if member.activated %}<a class="remove" href="{{ url_for(".remove_member", member_id=member.id) }}">{{ _("delete") }}</a>{% else %}<a href="{{ url_for(".reactivate", member_id=member.id) }}">{{ _("reactivate") }}</a>{% endif %}</td>
</tr>
{% endif %}
{% endfor %}
@@ -65,17 +65,17 @@
{% endblock %}
{% block content %}
-<div class="identifier">The project identifier is <a href="{{ url_for(".list_bills") }}">{{ g.project.id }}</a>, remember it or add this page to you bookmarks!</div>
+<div class="identifier">{{ _("The project identifier is") }} <a href="{{ url_for(".list_bills") }}">{{ g.project.id }}</a>, {{ _("remember it or add this page to you bookmarks!") }}</div>
<br /><br />
-<a id="new-bill" href="{{ url_for(".add_bill") }}" class="primary">Add a new bill</a>
+<a id="new-bill" href="{{ url_for(".add_bill") }}" class="primary">{{ _("Add a new bill") }}</a>
<form id="bill-form" action="{{ url_for(".add_bill") }}" method="post" style="display: none">
- <a id="hide-bill-form" href="#">hide this form</a>
+ <a id="hide-bill-form" href="#">{{ _("hide this form") }}</a>
{{ forms.add_bill(bill_form) }}
</form>
{% if bills.count() > 0 %}
<table class="list_bills common-table zebra-striped">
- <thead><tr><th>When?</th><th>Who paid?</th><th>For what?</th><th>Owers</th><th>How much?</th><th>Actions</th></tr></thead>
+ <thead><tr><th>{{ _("When?") }}</th><th>{{ _("Who paid?") }}</th><th>{{ _("For what?") }}</th><th>{{ _("Owers") }}</th><th>{{ _("How much?") }}</th><th>{{ _("Actions") }}</th></tr></thead>
<tbody>
{% for bill in bills %}
<tr class="{{ loop.cycle("odd", "even") }}">
@@ -84,15 +84,15 @@
<td>{{ bill.what }}</td>
<td>{% for ower in bill.owers %}{{ ower.name }} {% endfor %}</td>
<td>{{ bill.amount }} ({{ bill.pay_each() }} each)</td>
- <td><a href="{{ url_for(".edit_bill", bill_id=bill.id) }}">edit</a>
- <a class="delete" href="{{ url_for(".delete_bill", bill_id=bill.id) }}">delete</a></td>
+ <td><a href="{{ url_for(".edit_bill", bill_id=bill.id) }}">{{ _("edit") }}</a>
+ <a class="delete" href="{{ url_for(".delete_bill", bill_id=bill.id) }}">{{ _("delete") }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
- <p>Nothing to list yet. You probably want to <a id="empty-new-bill" href="{{ url_for(".add_bill") }}">add a bill</a> ?</p>
+ <p>{{ _("Nothing to list yet. You probably want to") }} <a id="empty-new-bill" href="{{ url_for(".add_bill") }}">{{ _("add a bill") }}</a> ?</p>
{% endif %}
</div>
{% endblock %}
diff --git a/budget/templates/password_reminder b/budget/templates/password_reminder.en
index fc24a6f..fc24a6f 100644
--- a/budget/templates/password_reminder
+++ b/budget/templates/password_reminder.en
diff --git a/budget/templates/password_reminder.fr b/budget/templates/password_reminder.fr
new file mode 100644
index 0000000..58f04e3
--- /dev/null
+++ b/budget/templates/password_reminder.fr
@@ -0,0 +1,7 @@
+Salut,
+
+Vous avez demandez des informations sur votre mot de passe pour "{{ project.name }}".
+
+Vous pouvez y accéder ici {{ config['SITE_URL'] }}{{ url_for(".list_bills", project_id=project.id) }}, le code d'accès est "{{ project.password }}".
+
+Faites en bon usage !
diff --git a/budget/templates/password_reminder.html b/budget/templates/password_reminder.html
index 0110cb8..89e399e 100644
--- a/budget/templates/password_reminder.html
+++ b/budget/templates/password_reminder.html
@@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% block content %}
-<h2>Password reminder</h2>
+<h2>{{ _("Password reminder") }}</h2>
<form method="post">
{{ forms.remind_password(form) }}
</form>
diff --git a/budget/templates/recent_projects.html b/budget/templates/recent_projects.html
index 91e1dd6..df4972d 100644
--- a/budget/templates/recent_projects.html
+++ b/budget/templates/recent_projects.html
@@ -1,5 +1,5 @@
{% if 'projects' in session %}
- <h3>Your projects</h3>
+<h3>{{ _("Your projects") }}</h3>
<ul>
{% for id, name in session['projects'] %}
<li><a href="{{ url_for("list_bills", project_id=id) }}">{{ name }}</a></li>
diff --git a/budget/templates/reminder_mail b/budget/templates/reminder_mail.en
index b2e3a65..b2e3a65 100644
--- a/budget/templates/reminder_mail
+++ b/budget/templates/reminder_mail.en
diff --git a/budget/templates/reminder_mail.fr b/budget/templates/reminder_mail.fr
new file mode 100644
index 0000000..8130218
--- /dev/null
+++ b/budget/templates/reminder_mail.fr
@@ -0,0 +1,8 @@
+Hey,
+
+Vous venez de créer le projet "{{ g.project.name }}" pour partager vos dépenses.
+
+Vous pouvez y accéder ici: {{ config['SITE_URL'] }}{{ url_for(".list_bills") }} (l'identifieur est {{ g.project.id }}),
+et le code d'accès "{{ g.project.password }}".
+
+Faites en bon usage !
diff --git a/budget/templates/send_invites.html b/budget/templates/send_invites.html
index ec68333..9883cba 100644
--- a/budget/templates/send_invites.html
+++ b/budget/templates/send_invites.html
@@ -2,16 +2,16 @@
{% block sidebar %}
<ol>
- <li>Create the project</li>
- <li><strong>Invite people</strong></li>
- <li><a href="{{ url_for(".list_bills") }}">Use it!</a></li>
+ <li>{{ _("Create the project") }}</li>
+ <li><strong>{{ _("Invite people") }}</strong></li>
+ <li><a href="{{ url_for(".list_bills") }}">{{ _("Use it!") }}</a></li>
</ol>
{% endblock %}
{% block content %}
-<h2>Invite people to join this project</h2>
-<p>Specify a (coma separated) list of email adresses you want to notify about the
-creation of this budget management project and we will send them an email for you.</p>
-<p>If you prefer, you can <a href="{{ url_for(".list_bills") }}">skip this step</a> and notify them yourself</p>
+<h2>{{ _("Invite people to join this project") }}</h2>
+<p>{{ _("Specify a (coma separated) list of email adresses you want to notify about the
+creation of this budget management project and we will send them an email for you.") }}</p>
+<p>{{ _("If you prefer, you can") }} <a href="{{ url_for(".list_bills") }}">{{ _("skip this step") }}</a> {{ _("and notify them yourself") }}</p>
{% include "display_errors.html" %}
<form class="invites" method="post" accept-charset="utf-8">