Changeset - 44deb8a53634
[Not reviewed]
0 1 0
Hiroshi Miura - 9 years ago 2015-06-17 09:15:22
miurahr@linux.com
i18n for more mesages

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
1 file changed with 8 insertions and 6 deletions:
0 comments (0 inline, 0 general)
symposion/proposals/views.py
Show inline comments
...
 
@@ -15,4 +15,6 @@ from django.contrib.auth.models import User
 
from django.contrib.auth.decorators import login_required
 

	
 
from django.utils.translation import ugettext_lazy as _
 

	
 
from account.models import EmailAddress
 
from symposion.proposals.models import (
...
 
@@ -37,7 +39,7 @@ def get_form(name):
 
def proposal_submit(request):
 
    if not request.user.is_authenticated():
 
        messages.info(request, "To submit a proposal, please "
 
                      "<a href='{0}'>log in</a> and create a speaker profile "
 
                      "via the dashboard.".format(settings.LOGIN_URL))
 
        messages.info(request, _("To submit a proposal, please "
 
                                 "<a href='{0}'>log in</a> and create a speaker profile "
 
                                 "via the dashboard.".format(settings.LOGIN_URL)))
 
        return redirect("home")  # @@@ unauth'd speaker info page?
 
    else:
...
 
@@ -46,7 +48,7 @@ def proposal_submit(request):
 
        except ObjectDoesNotExist:
 
            url = reverse("speaker_create")
 
            messages.info(request, "To submit a proposal, first "
 
                          "<a href='{0}'>create a speaker "
 
                          "profile</a>.".format(url))
 
            messages.info(request, _("To submit a proposal, first "
 
                                     "<a href='{0}'>create a speaker "
 
                                     "profile</a>.".format(url)))
 
            return redirect("dashboard")
 

	
0 comments (0 inline, 0 general)