From 316d58a3d2303833550e06b2d16f11563fbf511b Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Sat, 18 May 2013 13:52:35 -0400 Subject: fixed some messages for the translation --- askbot/deps/django_authopenid/views.py | 2 +- askbot/templates/ask.html | 2 +- askbot/templates/authopenid/changeemail.html | 89 +--------------------------- 3 files changed, 5 insertions(+), 88 deletions(-) diff --git a/askbot/deps/django_authopenid/views.py b/askbot/deps/django_authopenid/views.py index 287902a1..bea67d2f 100644 --- a/askbot/deps/django_authopenid/views.py +++ b/askbot/deps/django_authopenid/views.py @@ -1324,7 +1324,7 @@ def account_recover(request): #internal server view used as return value by other views def validation_email_sent(request): """this function is called only if EMAIL_VALIDATION setting is - set to True bolean value, basically dead now""" + set to True bolean value""" assert(askbot_settings.EMAIL_VALIDATION == True) logging.debug('') data = { diff --git a/askbot/templates/ask.html b/askbot/templates/ask.html index 4a20d864..df6d6bb9 100644 --- a/askbot/templates/ask.html +++ b/askbot/templates/ask.html @@ -22,7 +22,7 @@ {% else %} {% if settings.EMAIL_VALIDATION %} {% if not request.user.email_isvalid %} -
  • {% trans email=request.user.email %}Your email, %(email)s has not yet been validated. To post messages you must verify your email, please see more details here. You can submit your question now and validate email after that. Meanwhile, your question will saved as pending.{% endtrans %}
  • +
  • {% trans email=request.user.email %}Your email, {{ email }} has not yet been validated. To post messages you must verify your email, please see more details here. You can submit your question now and validate email after that. Meanwhile, your question will saved as pending.{% endtrans %}
  • {% endif %} {% endif %} {% endif %} diff --git a/askbot/templates/authopenid/changeemail.html b/askbot/templates/authopenid/changeemail.html index 8afa9c49..37de8369 100644 --- a/askbot/templates/authopenid/changeemail.html +++ b/askbot/templates/authopenid/changeemail.html @@ -1,90 +1,17 @@ {% extends "one_column_body.html" %} {% block title %}{% spaceless %}{% trans %}Change Email{% endtrans %}{% endspaceless %}{% endblock %} {% block content %} - -{% if action_type=="change" %} -

    - {% if user.email %} - {% trans %}Change Email{% endtrans %} - {% else %} - {% trans %}Save your email address{% endtrans %} - {% endif %} -

    -

    - {% if user.email %} - {% trans %}Enter your new email into the box below if -you'd like to use another email for update subscriptions. -
    Currently you are using %(email)s{% endtrans %} - {% else %} - {% trans %}Please enter your email address in the box below. -Valid email address is required on this Q&A forum. If you like, -you can receive updates on interesting questions or entire -forum via email. Also, your email is used to create a unique -gravatar image for your -account. Email addresses are never shown or otherwise shared with anybody -else.{% endtrans %} - {% endif %} -

    - {% if msg %} -

    {{ msg }}

    - {% endif %} -
    -
    {% csrf_token %} - {% if next %} - - {% endif %} -
    -
    -
    - - {% if user.email %} - - {% endif %} -
    -
    -
    -{% elif action_type=="validate" %} +{% if action_type=="validate" %}
    {% trans %}Validate email{% endtrans %}

    {% trans %}An email with a validation link has been sent to -%(email)s. Please follow the emailed link with your +{{ email }}. Please follow the emailed link with your web browser. Email validation is necessary to help insure the proper use of email on Q&A. If you would like to use another email, please change it again.{% endtrans %} -

    -{% elif action_type=="keep" %} -
    - {% trans %}Email not changed{% endtrans %} -
    -

    - {% trans %}Your email address %(email)s has not been changed. - If you decide to change it later - you can always do it by editing -it in your user profile or by using the previous form again.{% endtrans %} -

    -{% elif action_type=="done_novalidate" %} -
    - {% trans %}Email changed{% endtrans %} -
    -

    - {% trans %} -Your email address is now set to %(email)s. -Updates on the questions that you like most will be sent to this address. -Email notifications are sent once a day or less frequently - only when there -are any news.{% endtrans %} +href='{{ change_email_url }}'>change it again.{% endtrans %}

    {% elif action_type=="validation_complete" %}
    @@ -97,16 +24,6 @@ you find a very interesting question you can subscribe for the updates - then will be notified about changes once a day or less frequently.{% endtrans %}

    -{% elif action_type=="key_not_sent" %} -
    - {% trans %}Validation email not sent{% endtrans %} -
    -

    - {% trans %}Your current email address %(email)s has been -validated before so the new key was not sent. You can change email used for update subscriptions if -necessary.{% endtrans %} -

    {% endif %} {% endblock %} -- cgit v1.2.3-1-g7c22