mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-26 03:36:08 -05:00 
			
		
		
		
	fix some translation issues
This commit is contained in:
		| @@ -1,10 +1,14 @@ | ||||
| from django.apps import AppConfig | ||||
|  | ||||
| from django.utils.translation import gettext_lazy as _ | ||||
|  | ||||
|  | ||||
| class DocumentsConfig(AppConfig): | ||||
|  | ||||
|     name = "documents" | ||||
|  | ||||
|     verbose_name = _("Documents") | ||||
|  | ||||
|     def ready(self): | ||||
|         from .signals import document_consumption_finished | ||||
|         from .signals.handlers import ( | ||||
|   | ||||
| @@ -29,12 +29,12 @@ class MatchingModel(models.Model): | ||||
|     MATCH_AUTO = 6 | ||||
|  | ||||
|     MATCHING_ALGORITHMS = ( | ||||
|         (MATCH_ANY, _("Any")), | ||||
|         (MATCH_ALL, _("All")), | ||||
|         (MATCH_LITERAL, _("Literal")), | ||||
|         (MATCH_REGEX, _("Regular Expression")), | ||||
|         (MATCH_FUZZY, _("Fuzzy Match")), | ||||
|         (MATCH_AUTO, _("Automatic Classification")), | ||||
|         (MATCH_ANY, _("Any word")), | ||||
|         (MATCH_ALL, _("All words")), | ||||
|         (MATCH_LITERAL, _("Exact match")), | ||||
|         (MATCH_REGEX, _("Regular expression")), | ||||
|         (MATCH_FUZZY, _("Fuzzy word")), | ||||
|         (MATCH_AUTO, _("Automatic")), | ||||
|     ) | ||||
|  | ||||
|     name = models.CharField( | ||||
| @@ -312,11 +312,11 @@ class Document(models.Model): | ||||
| class Log(models.Model): | ||||
|  | ||||
|     LEVELS = ( | ||||
|         (logging.DEBUG, "Debugging"), | ||||
|         (logging.INFO, "Informational"), | ||||
|         (logging.WARNING, "Warning"), | ||||
|         (logging.ERROR, "Error"), | ||||
|         (logging.CRITICAL, "Critical"), | ||||
|         (logging.DEBUG, _("debug")), | ||||
|         (logging.INFO, _("information")), | ||||
|         (logging.WARNING, _("warning")), | ||||
|         (logging.ERROR, _("error")), | ||||
|         (logging.CRITICAL, _("critical")), | ||||
|     ) | ||||
|  | ||||
|     group = models.UUIDField( | ||||
|   | ||||
| @@ -7,6 +7,8 @@ from django.views.generic import RedirectView | ||||
| from rest_framework.authtoken import views | ||||
| from rest_framework.routers import DefaultRouter | ||||
|  | ||||
| from django.utils.translation import gettext_lazy as _ | ||||
|  | ||||
| from documents.views import ( | ||||
|     CorrespondentViewSet, | ||||
|     DocumentViewSet, | ||||
| @@ -103,4 +105,4 @@ admin.site.site_header = 'Paperless-ng' | ||||
| # Text at the end of each page's <title>. | ||||
| admin.site.site_title = 'Paperless-ng' | ||||
| # Text at the top of the admin index page. | ||||
| admin.site.index_title = 'Paperless-ng administration' | ||||
| admin.site.index_title = _('Paperless-ng administration') | ||||
|   | ||||
| @@ -1,7 +1,9 @@ | ||||
| from django.apps import AppConfig | ||||
|  | ||||
| from django.utils.translation import gettext_lazy as _ | ||||
|  | ||||
|  | ||||
| class PaperlessMailConfig(AppConfig): | ||||
|     name = 'paperless_mail' | ||||
|  | ||||
|     verbose_name = 'Paperless Mail' | ||||
|     verbose_name = _('Paperless mail') | ||||
|   | ||||
| @@ -7,6 +7,10 @@ from django.utils.translation import gettext_lazy as _ | ||||
|  | ||||
| class MailAccount(models.Model): | ||||
|  | ||||
|     class Meta: | ||||
|         verbose_name = _("mail account") | ||||
|         verbose_name_plural = _("mail accounts") | ||||
|  | ||||
|     IMAP_SECURITY_NONE = 1 | ||||
|     IMAP_SECURITY_SSL = 2 | ||||
|     IMAP_SECURITY_STARTTLS = 3 | ||||
| @@ -52,6 +56,10 @@ class MailAccount(models.Model): | ||||
|  | ||||
| class MailRule(models.Model): | ||||
|  | ||||
|     class Meta: | ||||
|         verbose_name = _("mail rule") | ||||
|         verbose_name_plural = _("mail rules") | ||||
|  | ||||
|     ACTION_DELETE = 1 | ||||
|     ACTION_MOVE = 2 | ||||
|     ACTION_MARK_READ = 3 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jonaswinkler
					jonaswinkler