mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Add translations for the admin fieldset headers
This commit is contained in:
parent
c4220aea6a
commit
8bfe343a78
3 changed files with 13 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from django.contrib import admin
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from axes.models import AccessLog
|
||||
from axes.models import AccessAttempt
|
||||
|
|
@ -34,10 +35,10 @@ class AccessAttemptAdmin(admin.ModelAdmin):
|
|||
(None, {
|
||||
'fields': ('path_info', 'failures_since_start')
|
||||
}),
|
||||
('Form Data', {
|
||||
(_('Form Data'), {
|
||||
'fields': ('get_data', 'post_data')
|
||||
}),
|
||||
('Meta Data', {
|
||||
(_('Meta Data'), {
|
||||
'fields': ('user_agent', 'ip_address', 'http_accept')
|
||||
})
|
||||
)
|
||||
|
|
@ -91,7 +92,7 @@ class AccessLogAdmin(admin.ModelAdmin):
|
|||
(None, {
|
||||
'fields': ('path_info',)
|
||||
}),
|
||||
('Meta Data', {
|
||||
(_('Meta Data'), {
|
||||
'fields': ('user_agent', 'ip_address', 'http_accept')
|
||||
})
|
||||
)
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -8,7 +8,7 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-07-17 15:36+0200\n"
|
||||
"POT-Creation-Date: 2018-07-17 15:56+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
|
@ -18,6 +18,14 @@ msgstr ""
|
|||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#: axes/admin.py:38
|
||||
msgid "Form Data"
|
||||
msgstr "Form-Daten"
|
||||
|
||||
#: axes/admin.py:41 axes/admin.py:95
|
||||
msgid "Meta Data"
|
||||
msgstr "Meta-Daten"
|
||||
|
||||
#: axes/conf.py:58
|
||||
msgid "Account locked: too many login attempts. Please try again later"
|
||||
msgstr ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue