A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
translation for login/logout pages #212
jonaswinklere96809a08e6d
diff --git a/src/documents/templates/index.html b/src/documents/templates/index.htmlindex 21112b643..285e48d3f 100644--- a/src/documents/templates/index.html+++ b/src/documents/templates/index.html@@ -1,6 +1,7 @@<!doctype html>{% load static %}+{% load i18n %}<html lang="en"><head>@@ -16,7 +17,7 @@<link rel="stylesheet" href="{% static styles_css %}"></head><body>- <app-root>Loading...</app-root>+ <app-root>{% translate "Paperless-ng is loading..." %}</app-root><script src="{% static runtime_js %}" defer></script><script src="{% static polyfills_js %}" defer></script><script src="{% static main_js %}" defer></script>diff --git a/src/documents/templates/registration/logged_out.html b/src/documents/templates/registration/logged_out.htmlindex 1448b641e..bf21b95f8 100644--- a/src/documents/templates/registration/logged_out.html+++ b/src/documents/templates/registration/logged_out.html@@ -1,6 +1,7 @@<!doctype html>{% load static %}+{% load i18n %}<html lang="en"><head>@@ -9,7 +10,7 @@<meta name="description" content=""><meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"><meta name="generator" content="Jekyll v4.1.1">- <title>Paperless Sign In</title>+ <title>{% translate "Paperless-ng signed out" %}</title><!-- Bootstrap core CSS --><link href="{% static 'bootstrap.min.css' %}" rel="stylesheet">@@ -37,8 +38,8 @@<body class="text-center"><div class="form-signin"><img class="mb-4" src="{% static 'frontend/en-US/assets/logo.svg' %}" alt="" width="300">- <p>You have been successfully logged out. Bye!</p>- <a href="/">Sign in again</a>+ <p>{% translate "You have been successfully logged out. Bye!" %}</p>+ <a href="/">{% translate "Sign in again" %}</a></div></body></html>diff --git a/src/documents/templates/registration/login.html b/src/documents/templates/registration/login.htmlindex 7f1fc79dd..ba46d3adf 100644--- a/src/documents/templates/registration/login.html+++ b/src/documents/templates/registration/login.html@@ -1,6 +1,7 @@<!doctype html>{% load static %}+{% load i18n %}<html lang="en"><head>@@ -9,7 +10,7 @@<meta name="description" content=""><meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors"><meta name="generator" content="Jekyll v4.1.1">- <title>Paperless Sign In</title>+ <title>{% translate "Paperless-ng sign in" %}</title><!-- Bootstrap core CSS --><link href="{% static 'bootstrap.min.css' %}" rel="stylesheet">@@ -38,17 +39,19 @@<form class="form-signin" method="post">{% csrf_token %}<img class="mb-4" src="{% static 'frontend/en-US/assets/logo.svg' %}" alt="" width="300">- <p>Please sign in.</p>+ <p>{% translate "Please sign in." %}</p>{% if form.errors %}<div class="alert alert-danger" role="alert">- Your username and password didn't match. Please try again.+ {% translate "Your username and password didn't match. Please try again." %}</div>{% endif %}- <label for="inputUsername" class="sr-only">Username</label>- <input type="text" name="username" id="inputUsername" class="form-control" placeholder="Username" required autofocus>- <label for="inputPassword" class="sr-only">Password</label>- <input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password" required>- <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>+ {% translate "Username" as i18n_username %}+ {% translate "Password" as i18n_password %}+ <label for="inputUsername" class="sr-only">{{ i18n_username }}</label>+ <input type="text" name="username" id="inputUsername" class="form-control" placeholder="{{ i18n_username }}" required autofocus>+ <label for="inputPassword" class="sr-only">{{ i18n_password }}</label>+ <input type="password" name="password" id="inputPassword" class="form-control" placeholder="{{ i18n_password }}" required>+ <button class="btn btn-lg btn-primary btn-block" type="submit">{% translate "Sign in" %}</button></form></body></html>diff --git a/src/locale/en-us/LC_MESSAGES/django.po b/src/locale/en-us/LC_MESSAGES/django.poindex b3e448058..414caba52 100644--- a/src/locale/en-us/LC_MESSAGES/django.po+++ b/src/locale/en-us/LC_MESSAGES/django.po@@ -8,7 +8,7 @@ msgid ""msgstr """Project-Id-Version: PACKAGE VERSION\n""Report-Msgid-Bugs-To: \n"-"POT-Creation-Date: 2021-01-06 19:50+0000\n"+"POT-Creation-Date: 2021-01-10 21:41+0000\n""PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n""Last-Translator: FULL NAME <EMAIL@ADDRESS>\n""Language-Team: LANGUAGE <[email protected]>\n"@@ -46,7 +46,7 @@ msgid "Automatic"msgstr ""#: documents/models.py:41 documents/models.py:354 paperless_mail/models.py:25-#: paperless_mail/models.py:111+#: paperless_mail/models.py:109msgid "name"msgstr ""@@ -338,6 +338,46 @@ msgstr ""msgid "filter rules"msgstr ""+#: documents/templates/index.html:20+msgid "Paperless-ng is loading..."+msgstr ""++#: documents/templates/registration/logged_out.html:13+msgid "Paperless-ng signed out"+msgstr ""++#: documents/templates/registration/logged_out.html:41+msgid "You have been successfully logged out. Bye!"+msgstr ""++#: documents/templates/registration/logged_out.html:42+msgid "Sign in again"+msgstr ""++#: documents/templates/registration/login.html:13+msgid "Paperless-ng sign in"+msgstr ""++#: documents/templates/registration/login.html:42+msgid "Please sign in."+msgstr ""++#: documents/templates/registration/login.html:45+msgid "Your username and password didn't match. Please try again."+msgstr ""++#: documents/templates/registration/login.html:48+msgid "Username"+msgstr ""++#: documents/templates/registration/login.html:49+msgid "Password"+msgstr ""++#: documents/templates/registration/login.html:54+msgid "Sign in"+msgstr ""+#: paperless/settings.py:268msgid "English"msgstr ""@@ -451,132 +491,132 @@ msgstr ""msgid "Only process attachments."msgstr ""-#: paperless_mail/models.py:70+#: paperless_mail/models.py:68msgid "Process all files, including 'inline' attachments."msgstr ""-#: paperless_mail/models.py:80+#: paperless_mail/models.py:78msgid "Mark as read, don't process read mails"msgstr ""-#: paperless_mail/models.py:81+#: paperless_mail/models.py:79msgid "Flag the mail, don't process flagged mails"msgstr ""-#: paperless_mail/models.py:82+#: paperless_mail/models.py:80msgid "Move to specified folder"msgstr ""-#: paperless_mail/models.py:83+#: paperless_mail/models.py:81msgid "Delete"msgstr ""-#: paperless_mail/models.py:90+#: paperless_mail/models.py:88msgid "Use subject as title"msgstr ""-#: paperless_mail/models.py:91+#: paperless_mail/models.py:89msgid "Use attachment filename as title"msgstr ""-#: paperless_mail/models.py:101+#: paperless_mail/models.py:99msgid "Do not assign a correspondent"msgstr ""-#: paperless_mail/models.py:103+#: paperless_mail/models.py:101msgid "Use mail address"msgstr ""-#: paperless_mail/models.py:105+#: paperless_mail/models.py:103msgid "Use name (or mail address if not available)"msgstr ""-#: paperless_mail/models.py:107+#: paperless_mail/models.py:105msgid "Use correspondent selected below"msgstr ""-#: paperless_mail/models.py:115+#: paperless_mail/models.py:113msgid "order"msgstr ""-#: paperless_mail/models.py:122+#: paperless_mail/models.py:120msgid "account"msgstr ""-#: paperless_mail/models.py:126+#: paperless_mail/models.py:124msgid "folder"msgstr ""-#: paperless_mail/models.py:130+#: paperless_mail/models.py:128msgid "filter from"msgstr ""-#: paperless_mail/models.py:133+#: paperless_mail/models.py:131msgid "filter subject"msgstr ""-#: paperless_mail/models.py:136+#: paperless_mail/models.py:134msgid "filter body"msgstr ""-#: paperless_mail/models.py:140+#: paperless_mail/models.py:138msgid "filter attachment filename"msgstr ""-#: paperless_mail/models.py:142+#: paperless_mail/models.py:140msgid """Only consume documents which entirely match this filename if specified. ""Wildcards such as *.pdf or *invoice* are allowed. Case insensitive."msgstr ""-#: paperless_mail/models.py:148+#: paperless_mail/models.py:146msgid "maximum age"msgstr ""-#: paperless_mail/models.py:150+#: paperless_mail/models.py:148msgid "Specified in days."msgstr ""-#: paperless_mail/models.py:153+#: paperless_mail/models.py:151msgid "attachment type"msgstr ""-#: paperless_mail/models.py:156+#: paperless_mail/models.py:154msgid """Inline attachments include embedded images, so it's best to combine this ""option with a filename filter."msgstr ""-#: paperless_mail/models.py:161+#: paperless_mail/models.py:159msgid "action"msgstr ""-#: paperless_mail/models.py:167+#: paperless_mail/models.py:165msgid "action parameter"msgstr ""-#: paperless_mail/models.py:169+#: paperless_mail/models.py:167msgid """Additional parameter for the action selected above, i.e., the target folder ""of the move to folder action."msgstr ""-#: paperless_mail/models.py:175+#: paperless_mail/models.py:173msgid "assign title from"msgstr ""-#: paperless_mail/models.py:185+#: paperless_mail/models.py:183msgid "assign this tag"msgstr ""-#: paperless_mail/models.py:193+#: paperless_mail/models.py:191msgid "assign this document type"msgstr ""-#: paperless_mail/models.py:197+#: paperless_mail/models.py:195msgid "assign correspondent from"msgstr ""-#: paperless_mail/models.py:207+#: paperless_mail/models.py:205msgid "assign this correspondent"msgstr ""