damned-lies r1348 - in trunk: . stats templates/people templates/vertimus



Author: claudep
Date: Wed Jan 14 12:37:12 2009
New Revision: 1348
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1348&view=rev

Log:
2009-01-14  Claude Paroz  <claude 2xlibre net>

	* stats/models.py: Translate description in domain.get_description.
	* templates/people/person_detail.html:
	* templates/vertimus/vertimus_detail.html: Use domain.get_description.

Modified:
   trunk/ChangeLog
   trunk/stats/models.py
   trunk/templates/people/person_detail.html
   trunk/templates/vertimus/vertimus_detail.html

Modified: trunk/stats/models.py
==============================================================================
--- trunk/stats/models.py	(original)
+++ trunk/stats/models.py	Wed Jan 14 12:37:12 2009
@@ -524,7 +524,10 @@
             return self.name
     
     def get_description(self):
-        return self.description or self.potbase()
+        if self.description:
+            return _(self.description)
+        else:
+            return self.potbase()
     
     def generate_pot_file(self, vcs_path):
         """ Return the pot file generated, and the error if any """

Modified: trunk/templates/people/person_detail.html
==============================================================================
--- trunk/templates/people/person_detail.html	(original)
+++ trunk/templates/people/person_detail.html	Wed Jan 14 12:37:12 2009
@@ -44,7 +44,7 @@
 {% for state in states %}
 <tr>
   <td>{{ state.updated|naturalday:dateformat }}</td>
-  <td><a href="{{ state.get_absolute_url }}">{{ state.branch.module.get_description }} - {{ state.branch.name }} - {% trans state.domain.description %} - {{ state.language.get_name }}</a></td>
+  <td><a href="{{ state.get_absolute_url }}">{{ state.branch.module.get_description }} - {{ state.branch.name }} - {{ state.domain.get_description }} - {{ state.language.get_name }}</a></td>
   <td>{{ state.get_state }}</td>
 </tr>
 {% endfor %}

Modified: trunk/templates/vertimus/vertimus_detail.html
==============================================================================
--- trunk/templates/vertimus/vertimus_detail.html	(original)
+++ trunk/templates/vertimus/vertimus_detail.html	Wed Jan 14 12:37:12 2009
@@ -18,7 +18,7 @@
 </div>
 {% endwith %}
 
-<h1><a href="{% url stats.views.module module.name %}">{{ module.get_description }}</a> - {{ branch.name }} - {% trans domain.description %} - {{ language.get_name }}</h1>
+<h1><a href="{% url stats.views.module module.name %}">{{ module.get_description }}</a> - {{ branch.name }} - {{ domain.get_description }} - {{ language.get_name }}</h1>
 
 {% if module.comment %}
   <p>{{ module.comment|safe }}</p>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]