damned-lies r1104 - in branches/djamnedlies: . stats templates
- From: stephaner svn gnome org
- To: svn-commits-list gnome org
- Subject: damned-lies r1104 - in branches/djamnedlies: . stats templates
- Date: Sun, 26 Oct 2008 10:16:09 +0000 (UTC)
Author: stephaner
Date: Sun Oct 26 10:16:09 2008
New Revision: 1104
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1104&view=rev
Log:
2008-10-26 StÃphane Raimbault <stephane raimbault gmail com>
* stats/views.py:
* templates/index.html: Fix incorrect variable name
translator_credit. Fix missing assignment after replace
call. Remove useless '<' and '>' replacements in Django
template. Format only in the template with a filter.
Modified:
branches/djamnedlies/ChangeLog
branches/djamnedlies/stats/views.py
branches/djamnedlies/templates/index.html
Modified: branches/djamnedlies/stats/views.py
==============================================================================
--- branches/djamnedlies/stats/views.py (original)
+++ branches/djamnedlies/stats/views.py Sun Oct 26 10:16:09 2008
@@ -26,15 +26,15 @@
from django.utils.translation import ugettext_lazy as _
def index(request):
- translator_credit = _("translator-credits")
- if request.LANGUAGE_CODE == 'en' or translator_credit == "translator-credits":
- translator_credit = ""
+ translator_credits = _("translator-credits")
+ if request.LANGUAGE_CODE == 'en' or translator_credits == "translator-credits":
+ translator_credits = ''
else:
- translator_credit.replace("\n", ", ").replace("<", "<").replace(">", ">")
+ translator_credits = translator_credits.split('\n')
+
context = {'pageSection': "home",
- 'webroot': settings.WEBROOT,
'rtl': False,
- 'translator_credit': translator_credit }
+ 'translator_credits': translator_credits }
return render_to_response('index.html', context)
def teams(request):
Modified: branches/djamnedlies/templates/index.html
==============================================================================
--- branches/djamnedlies/templates/index.html (original)
+++ branches/djamnedlies/templates/index.html Sun Oct 26 10:16:09 2008
@@ -42,7 +42,7 @@
{% if translator_credits %}
<p class="footnote">
- {% trans "Translated by:" %} {{ translator_credits }}
+ {% trans "Translated by:" %} {{ translator_credits|join:", " }}
</p>
{% endif %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]