aboutsummaryrefslogtreecommitdiff
path: root/budget/templates/layout.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2011-10-15 01:19:19 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2011-10-15 01:19:19 +0200
commitf61d1432c7b57da5725a94c7b308ebacfe0af085 (patch)
tree74f2270c6f9bde7f5661d295253d3000e397b079 /budget/templates/layout.html
parent45ccc8b509bc27f1301490272d71278a08bebe10 (diff)
downloadihatemoney-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/layout.html')
-rw-r--r--budget/templates/layout.html18
1 files changed, 9 insertions, 9 deletions
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 %}