diff templates/sat_website/developers.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 e45aed963722
line wrap: on
line diff
--- a/templates/sat_website/developers.html	Sun Jul 29 01:52:27 2012 +0200
+++ b/templates/sat_website/developers.html	Mon Jul 30 02:09:38 2012 +0200
@@ -20,38 +20,39 @@
 along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
 {% endcomment %}
 
+{% load i18n %}
 {% load staticfiles %}
-{% block headline %}Salut à Toi: contributing{% endblock %}
-{% block subtext %}Here are some informations on how to develop the Salut à Toi project{% endblock %}
+{% block headline %}{% trans "Salut à Toi: contributing" %}{% endblock %}
+{% block subtext %}{% trans "Here are some informations on how to develop the Salut à Toi project" %}{% endblock %}
 {% block main_container %}
 <div class="row">
     <h4 class="alert alert-success">
-    Get the source
+    {% trans "Get the source" %}
     </h4>
     <div class="info">
-        <p>You'll find the mercurial repository of SàT on <a href="http://repos.goffi.org/sat">http://repos.goffi.org/sat</a>, satellite project are also available on <a href="http://repos.goffi.org">http://repos.goffi.org</a></p>
-        <p>To clone the repository, use <a href="http://mercurial.selenic.com/">Mercurial</a>: <code>hg clone http://repos.goffi.org/sat</code>. Check the wiki (see below) for installation instructions</p>
+        <p>{% blocktrans with repos_sat="<a href=\"http://repos.goffi.org/sat\">http://repos.goffi.org/sat</a>" repos="<a href=\"http://repos.goffi.org\">http://repos.goffi.org</a>" %}You'll find the mercurial repository of SàT on {{ repos_sat }}, satellite project are also available on {{ repos }}{% endblocktrans %}</p>
+        <p>{% blocktrans with mercurial="<a href=\"http://mercurial.selenic.com/\">Mercurial</a>" %}To clone the repository, use {{ mercurial }}: <code>hg clone http://repos.goffi.org/sat</code>. Check the wiki (see below) for installation instructions{% endblocktrans %}</p>
     </div>
 </div>
 
 <div class="row">
     <h4 class="alert alert-success">
-    Documentation
+    {% trans "Documentation" %}
     </h4>
     <div class="info">
-        <p>The documentation is available on the wiki: <a href="http://wiki.goffi.org/wiki/sat">http://wiki.goffi.org/wiki/sat</a> (don't hesitate to improve it)</p>
-        <p>You'll also find a dedicated page for developers: <a href="http://wiki.goffi.org/wiki/S%C3%A0T_d%C3%A9veloppement/en">http://wiki.goffi.org/wiki/SàT_développement</a></p>
-        <p>If you need help, you can also check the mailing list: <a href="http://lists.goffi.org">http://lists.goffi.org</a></p>
+        <p>{% blocktrans with wiki="<a href=\"http://wiki.goffi.org/wiki/sat\">http://wiki.goffi.org/wiki/sat</a>" %}The documentation is available on the wiki: {{ wiki }} (don't hesitate to improve it){% endblocktrans %}</p>
+        <p>{% blocktrans with developers_page="<a href=\"http://wiki.goffi.org/wiki/S%C3%A0T_d%C3%A9veloppement/en\">http://wiki.goffi.org/wiki/SàT_développement</a>" %}You'll also find a dedicated page for developers: {{ developers_page }}{% endblocktrans %}</p>
+        <p>{% blocktrans with mailing_list="<a href=\"http://lists.goffi.org\">http://lists.goffi.org</a>" %}If you need help, you can also check the mailing list: {{ mailing_list }}{% endblocktrans %}</p>
     </div>
     
 </div>
 
 <div class="row">
     <h4 class="alert alert-success">
-    Contact
+    {% trans "Contact" %}
     </h4>
     <div class="info">
-        <p>The best way to join us is on SàT's Jabber room: <a href="xmpp:sat@chat.jabberfr.org">sat@chat.jabberfr.org</a></p>
+        <p>{% blocktrans with sat_muc="<a href=\"xmpp:sat@chat.jabberfr.org\">sat@chat.jabberfr.org</a>" %}The best way to join us is on SàT's Jabber room: {{ sat_muc }}{% endblocktrans %}</p>
     </div>
 </div>
 {% endblock %}