summaryrefslogtreecommitdiffstats
path: root/askbot/mail
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-01-09 21:47:15 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-01-09 21:47:15 -0300
commited72db61da21c2e93f6acaf0afca576f566f5a91 (patch)
tree6e60541a48444528e7b466d90d5a6ea7aed60804 /askbot/mail
parent616585cec22c9f9d457dc92bb7fe2c04b63dde65 (diff)
downloadaskbot-ed72db61da21c2e93f6acaf0afca576f566f5a91.tar.gz
askbot-ed72db61da21c2e93f6acaf0afca576f566f5a91.tar.bz2
askbot-ed72db61da21c2e93f6acaf0afca576f566f5a91.zip
broken
Diffstat (limited to 'askbot/mail')
-rw-r--r--askbot/mail/__init__.py15
-rw-r--r--askbot/mail/lamson_handlers.py2
2 files changed, 9 insertions, 8 deletions
diff --git a/askbot/mail/__init__.py b/askbot/mail/__init__.py
index 9da53ac4..60deec68 100644
--- a/askbot/mail/__init__.py
+++ b/askbot/mail/__init__.py
@@ -18,7 +18,8 @@ from django.core import mail
from django.conf import settings as django_settings
from django.core.exceptions import PermissionDenied
from django.forms import ValidationError
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import ugettext as _
+from django.utils.translation import ugettext_lazy
from django.utils.translation import string_concat
from django.template import Context
from django.utils.html import strip_tags
@@ -179,22 +180,22 @@ def mail_moderators(
if raise_on_failure == True:
raise exceptions.EmailNotSent(unicode(error))
-INSTRUCTIONS_PREAMBLE = _('<p>To ask by email, please:</p>')
-QUESTION_TITLE_INSTRUCTION = _(
+INSTRUCTIONS_PREAMBLE = ugettext_lazy('<p>To ask by email, please:</p>')
+QUESTION_TITLE_INSTRUCTION = ugettext_lazy(
'<li>Type title in the subject line</li>'
)
-QUESTION_DETAILS_INSTRUCTION = _(
+QUESTION_DETAILS_INSTRUCTION = ugettext_lazy(
'<li>Type details of your question into the email body</li>'
)
-OPTIONAL_TAGS_INSTRUCTION = _(
+OPTIONAL_TAGS_INSTRUCTION = ugettext_lazy(
"""<li>The beginning of the subject line can contain tags,
<em>enclosed in the square brackets</em> like so: [Tag1; Tag2]</li>"""
)
-REQUIRED_TAGS_INSTRUCTION = _(
+REQUIRED_TAGS_INSTRUCTION = ugettext_lazy(
"""<li>In the beginning of the subject add at least one tag
<em>enclosed in the brackets</em> like so: [Tag1; Tag2].</li>"""
)
-TAGS_INSTRUCTION_FOOTNOTE = _(
+TAGS_INSTRUCTION_FOOTNOTE = ugettext_lazy(
"""<p>Note that a tag may consist of more than one word, to separate
the tags, use a semicolon or a comma, for example, [One tag; Other tag]</p>"""
)
diff --git a/askbot/mail/lamson_handlers.py b/askbot/mail/lamson_handlers.py
index e8caf4d7..8bfa86f7 100644
--- a/askbot/mail/lamson_handlers.py
+++ b/askbot/mail/lamson_handlers.py
@@ -4,7 +4,7 @@ from django.core.files.uploadedfile import SimpleUploadedFile
from django.conf import settings as django_settings
from django.template import Context
from django.template.loader import get_template
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import ugettext as _
from lamson.routing import route, stateless
from lamson.server import Relay
from askbot.models import ReplyAddress, Group, Tag