X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/08e687e53ba84afd39646185142e59c6bfe77783..3deefcf48d775eb7d4cb1a41a51b8ff501f108ed:/src/messaging/views.py
diff --git a/src/messaging/views.py b/src/messaging/views.py
index 429031387..b4dbc2693 100644
--- a/src/messaging/views.py
+++ b/src/messaging/views.py
@@ -2,7 +2,6 @@ import json
from django.http import JsonResponse
from django.urls import reverse
from django.shortcuts import render
-from django.utils.translation import gettext as _
from django.views.decorators import cache
from django.views.generic import DetailView, UpdateView
from . import models
@@ -12,7 +11,7 @@ from .states import Level, states
def describe(value):
if hasattr(value, '_meta'):
meta = value._meta
- return _('''a %(verbose_name)s object.''') % {
+ return '''objekt typu %(verbose_name)s.''' % {
'docs_url': reverse('django-admindocs-models-detail', args=(meta.app_label, meta.model_name)),
'verbose_name': meta.verbose_name,
}
@@ -33,7 +32,7 @@ def state_info(request, slug):
"contact": contact,
}
ctx.update(state(test=True).get_context(contact))
- help_text = '%s:
' % _('Context')
+ help_text = 'Kontekst:
'
for k, v in ctx.items():
help_text += '
{{ %s }}
â %s
' % (k, describe(v))