Mercurial > sat_legacy_website
comparison templates/sat_website/base.html @ 2:0df46e87537d
i18n: marked translatable texts + add change language form on pages footer
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 30 Jul 2012 02:09:38 +0200 |
parents | a49aa1b823f6 |
children | 755ccdb0c62a |
comparison
equal
deleted
inserted
replaced
1:a49aa1b823f6 | 2:0df46e87537d |
---|---|
17 You should have received a copy of the GNU Affero General Public License | 17 You should have received a copy of the GNU Affero General Public License |
18 along with Foobar. If not, see <http://www.gnu.org/licenses/>. | 18 along with Foobar. If not, see <http://www.gnu.org/licenses/>. |
19 {% endcomment %} | 19 {% endcomment %} |
20 | 20 |
21 {% load staticfiles %} | 21 {% load staticfiles %} |
22 {% load i18n %} | |
22 | 23 |
23 <!DOCTYPE html> | 24 <!DOCTYPE html> |
24 <html lang="en"> | 25 <html lang="en"> |
25 <meta charset="utf-8"> | 26 <meta charset="utf-8"> |
26 <head> | 27 <head> |
27 <link rel="stylesheet" href="{% static "css/bootstrap.css" %}"> | 28 <link rel="stylesheet" href="{% static "css/bootstrap.css" %}"> |
28 <link rel="stylesheet" href="{% static "css/bootstrap-responsive.css" %}"> | 29 <link rel="stylesheet" href="{% static "css/bootstrap-responsive.css" %}"> |
29 <link rel="stylesheet" href="{% static "css/sat_website.css" %}"> | 30 <link rel="stylesheet" href="{% static "css/sat_website.css" %}"> |
30 <link rel="icon" type="image/png" href="{% static "images/sat_logo_32.png" %}"> | 31 <link rel="icon" type="image/png" href="{% static "images/sat_logo_32.png" %}"> |
31 <title>{% block title %}Salut à Toi: the multi-frontends, multi-purposes communication tool{% endblock %}</title> | 32 <title>{% block title %}{% trans "Salut à Toi: the multi-frontends, multi-purposes communication tool" %}{% endblock %}</title> |
32 </head> | 33 </head> |
33 <body> | 34 <body> |
34 <div class="navbar navbar-fixed-top"> | 35 <div class="navbar navbar-fixed-top"> |
35 <div class="navbar-inner"> | 36 <div class="navbar-inner"> |
36 <div class="container"> | 37 <div class="container"> |
42 <li><a href="{{ cat_url }}.html">{{ cat_name }}</a></li> | 43 <li><a href="{{ cat_url }}.html">{{ cat_name }}</a></li> |
43 {% endfor %} | 44 {% endfor %} |
44 </ul> | 45 </ul> |
45 {% if latest_dl_path and latest_version %} | 46 {% if latest_dl_path and latest_version %} |
46 <ul class="nav pull-right"> | 47 <ul class="nav pull-right"> |
47 <li><a href="{{ latest_dl_path }}"><strong>Download SàT {{ latest_version }}</strong></a> </li> | 48 <li><a href="{{ latest_dl_path }}"><strong>{% trans "Download SàT" %} {{ latest_version }}</strong></a> </li> |
48 | 49 |
49 </ul> | 50 </ul> |
50 {% endif %} | 51 {% endif %} |
51 </div> | 52 </div> |
52 </div> | 53 </div> |
53 </div> | 54 </div> |
54 {% block content %}{% endblock %} | 55 {% block content %}{% endblock %} |
56 <div class="container"> | |
57 <div class="row" id="language"> | |
58 | |
59 <form class="well form-inline" action="/i18n/setlang/" method="post"> | |
60 {% csrf_token %} | |
61 <input name="next" type="hidden" value="{{ redirect_to }}" /> | |
62 <select name="language"> | |
63 {% get_language_info_list for available_languages as languages %} | |
64 {% for language in languages %} | |
65 <option value="{{ language.code }}">{{ language.name_local }} ({{ language.code }})</option> | |
66 {% endfor %} | |
67 </select> | |
68 <input type="submit" value="{% trans "Change language" %}" /> | |
69 </form> | |
70 </div> | |
71 </div> | |
55 </body> | 72 </body> |
56 </html> | 73 </html> |