Mercurial > sat_legacy_website
diff templates/sat_website/screenshots.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 | 9305c6458e2f |
children | ab8a0f7bd15c |
line wrap: on
line diff
--- a/templates/sat_website/screenshots.html Sun Jul 29 01:52:27 2012 +0200 +++ b/templates/sat_website/screenshots.html Mon Jul 30 02:09:38 2012 +0200 @@ -20,18 +20,19 @@ along with Foobar. If not, see <http://www.gnu.org/licenses/>. {% endcomment %} +{% load i18n %} {% load staticfiles %} {% load partition %} -{% block headline %}Some screenshots...{% endblock %} +{% block headline %}{% trans "Some screenshots..." %}{% endblock %} {% block extra %} <div class="btn-group"> - <a class="btn btn-info" href="#screenshots">screenshots</a> - <a class="btn btn-primary" href="#screencasts">screencasts</a> + <a class="btn btn-info" href="#screenshots">{% trans "screenshots" %}</a> + <a class="btn btn-primary" href="#screencasts">{% trans "screencasts" %}</a> </div> {% endblock %} {% block main_container %} -<a name="screenshots"><h2>Screenshots</h2></a> +<a name="screenshots"><h2>{% trans "Screenshots" %}</h2></a> <div class="row"> {% for row in screenshots|columns:3 %} <ul class="thumbnails"> @@ -49,13 +50,13 @@ </ul> {% endfor %} </div> -<a name="screencasts"><h2>Screencasts</h2></a> +<a name="{% trans "screencasts" %}"><h2>{% trans "Screencasts" %}</h2></a> {% for screencast in screencasts %} <div class="row"> <div class="span10 offset1"> <div class="screencast"> <video width="640" height="400" poster="{% static screencast.poster %}" controls="controls" src="{% static screencast.path %}" preload="none"> - Your browser doesn't manage the « video » tag, you should update, e.g. with the last <a href="http://www.mozilla-europe.org/fr/">Firefox</a> + {% blocktrans with firefox="<a href=\"http://www.mozilla-europe.org/fr/\">Firefox</a>" %}Your browser doesn't manage the « video » tag, you should update, e.g. with the last {{ firefox }}{% endblocktrans %} </video> </div> <div class="screencast_dest">