changeset 223:d2be34f42ca8

More i18n
author Sylvain Beucler <beuc@beuc.net>
date Sun, 01 Aug 2010 09:27:54 +0200
parents 06eaae5b0897
children 22c52fa20e6c
files savane/svmain/urls.py templates/my/contact.html templates/my/i18n.html templates/my/resume_skill.html templates/my/ssh.html
diffstat 5 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/savane/svmain/urls.py
+++ b/savane/svmain/urls.py
@@ -53,13 +53,13 @@
       { 'queryset': auth_models.User.objects.all(),
         'paginate_by': 20,
         'model_admin': UserAdmin,
-        'extra_context' : { 'title' : 'Users' },
+        'extra_context' : { 'title' : _("Users") },
         'template_name' : 'svmain/user_list.html' },
       name='user_list'),
   url(r'^u/(?P<slug>[-\w]+)/$', object_detail,
       { 'queryset' : auth_models.User.objects.all(),
         'slug_field' : 'username',
-        'extra_context' : { 'title' : 'User detail' },
+        'extra_context' : { 'title' : _("User detail") },
         'template_name' : 'svmain/user_detail.html', },
       name='user_detail'),
   url(r'^us/(?P<slug>[-\w]+)/$', views.user_redir),
--- a/templates/my/contact.html
+++ b/templates/my/contact.html
@@ -2,7 +2,7 @@
 {% load i18n %}
 
 {% block title %}
-{% trans "My account configuration" %}{% trans ": " %} {{title}}
+{% trans "My account configuration" %}{% trans ": " %}{{title}}
 {% endblock %}
 
 {% block content %}
--- a/templates/my/i18n.html
+++ b/templates/my/i18n.html
@@ -2,7 +2,7 @@
 {% load i18n %}
 
 {% block title %}
-{% trans "My account configuration" %}{% trans ": " %} {{title}}
+{% trans "My account configuration" %}{% trans ": " %}{{title}}
 {% endblock %}
 
 {% comment %}
--- a/templates/my/resume_skill.html
+++ b/templates/my/resume_skill.html
@@ -2,7 +2,7 @@
 {% load i18n %}
 
 {% block title %}
-{% trans "My account configuration" %}{% trans ": " %} {{title}}
+{% trans "My account configuration" %}{% trans ": " %}{{title}}
 {% endblock %}
 
 {% block content %}
--- a/templates/my/ssh.html
+++ b/templates/my/ssh.html
@@ -2,7 +2,7 @@
 {% load i18n %}
 
 {% block title %}
-{% trans "My account configuration" %}{% trans ": " %} {{title}}
+{% trans "My account configuration" %}{% trans ": " %}{{title}}
 {% endblock %}
 
 {% block content %}