Browse Source

Translate STEPS in english

Gu1 11 years ago
parent
commit
ad1d36bce2
2 changed files with 23 additions and 4 deletions
  1. 21 2
      ffdnispdb/constants.py
  2. 2 2
      ffdnispdb/templates/layout.html

+ 21 - 2
ffdnispdb/constants.py

@@ -1,4 +1,23 @@
 # -*- coding: utf-8 -*-
 
-STEPS = {1:u'Projet envisagé', 2:u'Porteurs du projet identifiés', 3:u'Structure en cours de création', 4:u'Structure constituée', 5:u'Outils de base créés (compte en banque, premiers adhérents)', 6:u'FAI opérationnel partiellement (premiers accès ouverts, p-e en mode dégradé)', 7:u'FAI pleinement opérationnel'}
-STEPS_LABELS = {1:'', 2:'info', 3:'info', 4:'important', 5:'important', 6:'warning', 7:'success'}
+from flask.ext.babel import gettext as _
+
+STEPS = {
+    1: _(u'Project considered'),
+    2: _(u'Primary members found'),
+    3: _(u'Legal structure being created'),
+    4: _(u'Legal structure created'),
+    5: _(u'Base tools created (bank account, first members)'),
+    6: _(u'ISP partially functional (first subscribers, maybe in degraded mode)'),
+    7: _(u'ISP fully working')
+}
+
+STEPS_LABELS = {
+    1: '',
+    2: 'info',
+    3: 'info',
+    4: 'important',
+    5: 'important',
+    6: 'warning',
+    7: 'success'
+}

+ 2 - 2
ffdnispdb/templates/layout.html

@@ -76,9 +76,9 @@
 <footer>
   <div class="container">
     <div class="bracket"></div>
-    <p class="credit">Developped for the <a href="//ffdn.org">FDN Federation</a> by <a href="http://gu1.aeroxteam.fr">Gu1</a>@<a href="https://www.cafai.fr">CAFAI</a> and <a href="/humans.txt">Many contributors</a>.</p>
+    <p class="credit">Developped for the <a href="//ffdn.org">FDN Federation</a> by Gu1@<a href="https://www.cafai.fr">CAFAI</a> and <a href="/humans.txt">Many contributors</a>.</p>
     <p class="license"><a href="https://dev.cafai.fr/gitweb/?p=ffdn-db.git">Source code</a> licensed under the <a href="http://opensource.org/licenses/BSD-3-Clause">3-clause BSD license</a>.</p>
-    <p class="contact">You can contact us at <a href="mailto:contact@db.ffdn.org">contact@db.ffdn.org</a>.</p>
+    <p class="contact">You can contact us at <a href="mailto:contact@ffdn.org">contact@ffdn.org</a>.</p>
   </div>
 </footer>