more translation

This commit is contained in:
jonaswinkler
2020-12-31 15:59:12 +01:00
parent 750d08ec01
commit fddda75f75
3 changed files with 81 additions and 46 deletions

View File

@@ -1,6 +1,8 @@
from django.contrib import admin
from paperless_mail.models import MailAccount, MailRule
from django.utils.translation import gettext_lazy as _
class MailAccountAdmin(admin.ModelAdmin):
@@ -19,31 +21,31 @@ class MailRuleAdmin(admin.ModelAdmin):
(None, {
'fields': ('name', 'order', 'account', 'folder')
}),
("Filter", {
(_("Filter"), {
'description':
"Paperless will only process mails that match ALL of the "
"filters given below.",
_("Paperless will only process mails that match ALL of the "
"filters given below."),
'fields':
('filter_from',
'filter_subject',
'filter_body',
'maximum_age')
}),
("Actions", {
(_("Actions"), {
'description':
"The action applied to the mail. This action is only "
"performed when documents were consumed from the mail. Mails "
"without attachments will remain entirely untouched.",
_("The action applied to the mail. This action is only "
"performed when documents were consumed from the mail. "
"Mails without attachments will remain entirely untouched."),
'fields': (
'action',
'action_parameter')
}),
("Metadata", {
(_("Metadata"), {
'description':
"Assign metadata to documents consumed from this rule "
"automatically. If you do not assign tags, types or "
"correspondents here, paperless will still process all "
"matching rules that you have defined.",
_("Assign metadata to documents consumed from this rule "
"automatically. If you do not assign tags, types or "
"correspondents here, paperless will still process all "
"matching rules that you have defined."),
"fields": (
'assign_title_from',
'assign_tag',