From eec57b4dfd65fbe7bf02feadd1caade690e50f3a Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Sat, 4 Nov 2023 20:12:48 -0700
Subject: [PATCH] Update frontend strings for custom fields
---
src-ui/messages.xlf | 560 ++++++++++++++++++-------
src/locale/en_US/LC_MESSAGES/django.po | 62 ++-
2 files changed, 468 insertions(+), 154 deletions(-)
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index 1a637fbb1..a132bb7ec 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -312,7 +312,7 @@
src/app/components/document-detail/document-detail.component.html
- 65
+ 81
@@ -421,11 +421,11 @@
src/app/components/app-frame/app-frame.component.html
- 218
+ 225
src/app/components/app-frame/app-frame.component.html
- 221
+ 228
@@ -511,11 +511,11 @@
src/app/components/app-frame/app-frame.component.html
- 196
+ 203
src/app/components/app-frame/app-frame.component.html
- 199
+ 206
@@ -777,7 +777,7 @@
src/app/components/document-detail/document-detail.component.html
- 192
+ 221
src/app/components/document-list/bulk-editor/bulk-editor.component.html
@@ -1031,6 +1031,10 @@
src/app/components/common/edit-dialog/correspondent-edit-dialog/correspondent-edit-dialog.component.html
9
+
+ src/app/components/common/edit-dialog/custom-field-edit-dialog/custom-field-edit-dialog.component.html
+ 8
+
src/app/components/common/edit-dialog/document-type-edit-dialog/document-type-edit-dialog.component.html
10
@@ -1063,6 +1067,10 @@
src/app/components/manage/consumption-templates/consumption-templates.component.html
14
+
+ src/app/components/manage/custom-fields/custom-fields.component.html
+ 14
+
src/app/components/manage/mail/mail.component.html
17
@@ -1163,6 +1171,10 @@
src/app/components/manage/consumption-templates/consumption-templates.component.html
17
+
+ src/app/components/manage/custom-fields/custom-fields.component.html
+ 16
+
src/app/components/manage/mail/mail.component.html
19
@@ -1226,6 +1238,10 @@
src/app/components/manage/consumption-templates/consumption-templates.component.html
36
+
+ src/app/components/manage/custom-fields/custom-fields.component.html
+ 34
+
src/app/components/manage/mail/mail.component.html
42
@@ -1292,6 +1308,10 @@
src/app/components/common/edit-dialog/correspondent-edit-dialog/correspondent-edit-dialog.component.html
21
+
+ src/app/components/common/edit-dialog/custom-field-edit-dialog/custom-field-edit-dialog.component.html
+ 14
+
src/app/components/common/edit-dialog/document-type-edit-dialog/document-type-edit-dialog.component.html
23
@@ -1322,7 +1342,7 @@
src/app/components/document-detail/document-detail.component.html
- 208
+ 93
src/app/components/document-list/save-view-config-dialog/save-view-config-dialog.component.html
@@ -1426,7 +1446,7 @@
src/app/components/app-frame/app-frame.component.html
- 210
+ 217
@@ -1460,7 +1480,7 @@
src/app/components/common/input/tags/tags.component.html
- 2
+ 4
src/app/components/common/permissions-select/permissions-select.component.html
@@ -1635,11 +1655,11 @@
src/app/components/app-frame/app-frame.component.html
- 203
+ 210
src/app/components/app-frame/app-frame.component.html
- 206
+ 213
@@ -1720,6 +1740,10 @@
src/app/components/manage/consumption-templates/consumption-templates.component.html
31
+
+ src/app/components/manage/custom-fields/custom-fields.component.html
+ 29
+
src/app/components/manage/mail/mail.component.html
32
@@ -1822,7 +1846,7 @@
src/app/components/document-detail/document-detail.component.ts
- 656
+ 677
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -1836,6 +1860,10 @@
src/app/components/manage/consumption-templates/consumption-templates.component.ts
91
+
+ src/app/components/manage/custom-fields/custom-fields.component.ts
+ 76
+
src/app/components/manage/mail/mail.component.ts
114
@@ -1857,7 +1885,7 @@
src/app/components/document-detail/document-detail.component.ts
- 658
+ 679
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -1867,6 +1895,10 @@
src/app/components/manage/consumption-templates/consumption-templates.component.ts
93
+
+ src/app/components/manage/custom-fields/custom-fields.component.ts
+ 78
+
src/app/components/manage/mail/mail.component.ts
116
@@ -1969,11 +2001,11 @@
src/app/components/app-frame/app-frame.component.html
- 225
+ 232
src/app/components/app-frame/app-frame.component.html
- 228
+ 235
@@ -2093,8 +2125,8 @@
26
-
- Document types
+
+ Document Types
src/app/components/app-frame/app-frame.component.html
162
@@ -2103,9 +2135,13 @@
src/app/components/app-frame/app-frame.component.html
165
+
+ src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.html
+ 61
+
-
- Storage paths
+
+ Storage Paths
src/app/components/app-frame/app-frame.component.html
169
@@ -2114,86 +2150,105 @@
src/app/components/app-frame/app-frame.component.html
172
+
+ src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.html
+ 67
+
+
+
+ Custom Fields
+
+ src/app/components/app-frame/app-frame.component.html
+ 176
+
+
+ src/app/components/app-frame/app-frame.component.html
+ 179
+
+
+ src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html
+ 6
+
Consumption templates
src/app/components/app-frame/app-frame.component.html
- 176
+ 183
Templates
src/app/components/app-frame/app-frame.component.html
- 179
+ 186
Mail
src/app/components/app-frame/app-frame.component.html
- 183
+ 190
src/app/components/app-frame/app-frame.component.html
- 186
+ 193
Administration
src/app/components/app-frame/app-frame.component.html
- 192
+ 199
File Tasks
src/app/components/app-frame/app-frame.component.html
- 214
+ 221
GitHub
src/app/components/app-frame/app-frame.component.html
- 234
+ 241
is available.
src/app/components/app-frame/app-frame.component.html
- 240
+ 247
Click to view.
src/app/components/app-frame/app-frame.component.html
- 240
+ 247
Paperless-ngx can automatically check for updates
src/app/components/app-frame/app-frame.component.html
- 244
+ 251
How does this work?
src/app/components/app-frame/app-frame.component.html
- 251,253
+ 258,260
Update available
src/app/components/app-frame/app-frame.component.html
- 262
+ 269
@@ -2273,6 +2328,60 @@
439
+
+ Create New Field
+
+ src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html
+ 25
+
+
+
+ Add
+
+ src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.html
+ 30
+
+
+ src/app/components/common/permissions-select/permissions-select.component.html
+ 7
+
+
+
+ Choose field
+
+ src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts
+ 52
+
+
+
+ No unused fields found
+
+ src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts
+ 56
+
+
+
+ Saved field "".
+
+ src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts
+ 120
+
+
+ src/app/components/manage/custom-fields/custom-fields.component.ts
+ 59
+
+
+
+ Error saving field.
+
+ src/app/components/common/custom-fields-dropdown/custom-fields-dropdown.component.ts
+ 128
+
+
+ src/app/components/manage/custom-fields/custom-fields.component.ts
+ 66
+
+
now
@@ -2503,6 +2612,10 @@
src/app/components/common/edit-dialog/correspondent-edit-dialog/correspondent-edit-dialog.component.html
20
+
+ src/app/components/common/edit-dialog/custom-field-edit-dialog/custom-field-edit-dialog.component.html
+ 13
+
src/app/components/common/edit-dialog/document-type-edit-dialog/document-type-edit-dialog.component.html
22
@@ -2654,6 +2767,34 @@
31
+
+ Data type
+
+ src/app/components/common/edit-dialog/custom-field-edit-dialog/custom-field-edit-dialog.component.html
+ 9
+
+
+
+ Data type cannot be changed after a field is created
+
+ src/app/components/common/edit-dialog/custom-field-edit-dialog/custom-field-edit-dialog.component.html
+ 10
+
+
+
+ Create new custom field
+
+ src/app/components/common/edit-dialog/custom-field-edit-dialog/custom-field-edit-dialog.component.ts
+ 39
+
+
+
+ Edit custom field
+
+ src/app/components/common/edit-dialog/custom-field-edit-dialog/custom-field-edit-dialog.component.ts
+ 43
+
+
Create new document type
@@ -3293,26 +3434,53 @@
Filter drop down element to filter for documents with no correspondent/type/tag assigned
+
+ Remove
+
+ src/app/components/common/input/check/check.component.html
+ 8
+
+
+ src/app/components/common/input/date/date.component.html
+ 8
+
+
+ src/app/components/common/input/number/number.component.html
+ 8
+
+
+ src/app/components/common/input/select/select.component.html
+ 8
+
+
+ src/app/components/common/input/text/text.component.html
+ 8
+
+
+ src/app/components/common/input/url/url.component.html
+ 8
+
+
Invalid date.
src/app/components/common/input/date/date.component.html
- 18
+ 27
Suggestions:
src/app/components/common/input/date/date.component.html
- 21
+ 30
src/app/components/common/input/select/select.component.html
- 37
+ 47
src/app/components/common/input/tags/tags.component.html
- 43
+ 46
@@ -3323,7 +3491,7 @@
src/app/components/common/input/select/select.component.ts
- 149
+ 155
@@ -3359,7 +3527,7 @@
Add item
src/app/components/common/input/select/select.component.html
- 12
+ 21
Used for both types, correspondents, storage paths
@@ -3382,18 +3550,32 @@
80
+
+ No items found
+
+ src/app/components/common/input/select/select.component.ts
+ 92
+
+
Add tag
src/app/components/common/input/tags/tags.component.html
- 12
+ 15
Filter documents with these Tags
src/app/components/common/input/tags/tags.component.html
- 35
+ 38
+
+
+
+ Open link
+
+ src/app/components/common/input/url/url.component.html
+ 14
@@ -3452,13 +3634,6 @@
5
-
- Add
-
- src/app/components/common/permissions-select/permissions-select.component.html
- 7
-
-
Change
@@ -3669,7 +3844,7 @@
src/app/components/document-detail/document-detail.component.html
- 85
+ 103
src/app/components/document-list/document-list.component.html
@@ -3677,7 +3852,7 @@
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 201
+ 203
src/app/services/rest/document.service.ts
@@ -3692,7 +3867,7 @@
src/app/components/document-detail/document-detail.component.html
- 89
+ 107
src/app/components/document-list/bulk-editor/bulk-editor.component.html
@@ -3790,20 +3965,6 @@
13
-
- Document Types
-
- src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.html
- 61
-
-
-
- Storage Paths
-
- src/app/components/dashboard/widgets/statistics-widget/statistics-widget.component.html
- 67
-
-
Other
@@ -3974,7 +4135,7 @@
Close
src/app/components/document-detail/document-detail.component.html
- 53
+ 71
src/app/guards/dirty-saved-view.guard.ts
@@ -3985,35 +4146,56 @@
Previous
src/app/components/document-detail/document-detail.component.html
- 60
+ 76
+
+
+
+ Discard
+
+ src/app/components/document-detail/document-detail.component.html
+ 89
+
+
+
+ Save & next
+
+ src/app/components/document-detail/document-detail.component.html
+ 91
+
+
+
+ Save & close
+
+ src/app/components/document-detail/document-detail.component.html
+ 92
Details
src/app/components/document-detail/document-detail.component.html
- 82
+ 100
Archive serial number
src/app/components/document-detail/document-detail.component.html
- 86
+ 104
Date created
src/app/components/document-detail/document-detail.component.html
- 87
+ 105
Document type
src/app/components/document-detail/document-detail.component.html
- 91
+ 109
src/app/components/document-list/bulk-editor/bulk-editor.component.html
@@ -4036,7 +4218,7 @@
Storage path
src/app/components/document-detail/document-detail.component.html
- 93
+ 111
src/app/components/document-list/bulk-editor/bulk-editor.component.html
@@ -4055,21 +4237,21 @@
Default
src/app/components/document-detail/document-detail.component.html
- 94
+ 112
Content
src/app/components/document-detail/document-detail.component.html
- 101
+ 130
Metadata
src/app/components/document-detail/document-detail.component.html
- 110
+ 139
src/app/components/document-detail/metadata-collapse/metadata-collapse.component.ts
@@ -4080,173 +4262,152 @@
Date modified
src/app/components/document-detail/document-detail.component.html
- 116
+ 145
Date added
src/app/components/document-detail/document-detail.component.html
- 120
+ 149
Media filename
src/app/components/document-detail/document-detail.component.html
- 124
+ 153
Original filename
src/app/components/document-detail/document-detail.component.html
- 128
+ 157
Original MD5 checksum
src/app/components/document-detail/document-detail.component.html
- 132
+ 161
Original file size
src/app/components/document-detail/document-detail.component.html
- 136
+ 165
Original mime type
src/app/components/document-detail/document-detail.component.html
- 140
+ 169
Archive MD5 checksum
src/app/components/document-detail/document-detail.component.html
- 144
+ 173
Archive file size
src/app/components/document-detail/document-detail.component.html
- 148
+ 177
Original document metadata
src/app/components/document-detail/document-detail.component.html
- 154
+ 183
Archived document metadata
src/app/components/document-detail/document-detail.component.html
- 155
+ 184
Preview
src/app/components/document-detail/document-detail.component.html
- 161
+ 190
Enter Password
src/app/components/document-detail/document-detail.component.html
- 177
+ 206
src/app/components/document-detail/document-detail.component.html
- 228
+ 249
Notes
src/app/components/document-detail/document-detail.component.html
- 185,186
-
-
-
- Discard
-
- src/app/components/document-detail/document-detail.component.html
- 204
-
-
-
- Save & next
-
- src/app/components/document-detail/document-detail.component.html
- 206
-
-
-
- Save & close
-
- src/app/components/document-detail/document-detail.component.html
- 207
+ 214,215
An error occurred loading content:
src/app/components/document-detail/document-detail.component.ts
- 253,255
+ 265,267
Error retrieving metadata
src/app/components/document-detail/document-detail.component.ts
- 398
+ 413
Error retrieving suggestions.
src/app/components/document-detail/document-detail.component.ts
- 419
+ 434
Document saved successfully.
src/app/components/document-detail/document-detail.component.ts
- 532
+ 552
src/app/components/document-detail/document-detail.component.ts
- 540
+ 561
Error saving document
src/app/components/document-detail/document-detail.component.ts
- 544
+ 565
src/app/components/document-detail/document-detail.component.ts
- 585
+ 606
Confirm delete
src/app/components/document-detail/document-detail.component.ts
- 611
+ 632
src/app/components/manage/management-list/management-list.component.ts
@@ -4257,35 +4418,35 @@
Do you really want to delete document ""?
src/app/components/document-detail/document-detail.component.ts
- 612
+ 633
The files for this document will be deleted permanently. This operation cannot be undone.
src/app/components/document-detail/document-detail.component.ts
- 613
+ 634
Delete document
src/app/components/document-detail/document-detail.component.ts
- 615
+ 636
Error deleting document
src/app/components/document-detail/document-detail.component.ts
- 634
+ 655
Redo OCR confirm
src/app/components/document-detail/document-detail.component.ts
- 654
+ 675
src/app/components/document-list/bulk-editor/bulk-editor.component.ts
@@ -4296,21 +4457,21 @@
This operation will permanently redo OCR for this document.
src/app/components/document-detail/document-detail.component.ts
- 655
+ 676
Redo OCR operation will begin in the background. Close and re-open or reload this document after the operation has completed to see new content.
src/app/components/document-detail/document-detail.component.ts
- 666
+ 687
Error executing operation
src/app/components/document-detail/document-detail.component.ts
- 677
+ 698
@@ -4796,7 +4957,7 @@
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 206
+ 208
src/app/services/rest/document.service.ts
@@ -4912,14 +5073,14 @@
)?.name"/>
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 118,120
+ 120,122
Without correspondent
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 122
+ 124
@@ -4928,14 +5089,14 @@
)?.name"/>
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 128,130
+ 130,132
Without document type
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 132
+ 134
@@ -4944,14 +5105,14 @@
)?.name"/>
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 138,140
+ 140,142
Without storage path
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 142
+ 144
@@ -4959,105 +5120,112 @@
?.name"/>
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 146,147
+ 148,149
Without any tag
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 151
+ 153
Title:
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 155
+ 157
ASN:
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 158
+ 160
Owner:
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 161
+ 163
Owner not in:
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 164
+ 166
Without an owner
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 167
+ 169
Title & content
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 204
+ 206
+
+
+
+ Custom fields
+
+ src/app/components/document-list/filter-editor/filter-editor.component.ts
+ 211
Advanced search
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 209
+ 215
More like
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 215
+ 221
equals
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 234
+ 240
is empty
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 238
+ 244
is not empty
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 242
+ 248
greater than
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 246
+ 252
less than
src/app/components/document-list/filter-editor/filter-editor.component.ts
- 250
+ 256
@@ -5232,6 +5400,55 @@
67
+
+ Add Field
+
+ src/app/components/manage/custom-fields/custom-fields.component.html
+ 6
+
+
+
+ Data Type
+
+ src/app/components/manage/custom-fields/custom-fields.component.html
+ 15
+
+
+
+ No fields defined.
+
+ src/app/components/manage/custom-fields/custom-fields.component.html
+ 40
+
+
+
+ Confirm delete field
+
+ src/app/components/manage/custom-fields/custom-fields.component.ts
+ 74
+
+
+
+ This operation will permanently delete this field.
+
+ src/app/components/manage/custom-fields/custom-fields.component.ts
+ 75
+
+
+
+ Deleted field
+
+ src/app/components/manage/custom-fields/custom-fields.component.ts
+ 84
+
+
+
+ Error deleting field.
+
+ src/app/components/manage/custom-fields/custom-fields.component.ts
+ 89
+
+
document type
@@ -5750,6 +5967,55 @@
46
+
+ Boolean
+
+ src/app/data/paperless-custom-field.ts
+ 16
+
+
+
+ Date
+
+ src/app/data/paperless-custom-field.ts
+ 20
+
+
+
+ Integer
+
+ src/app/data/paperless-custom-field.ts
+ 24
+
+
+
+ Number
+
+ src/app/data/paperless-custom-field.ts
+ 28
+
+
+
+ Monetary
+
+ src/app/data/paperless-custom-field.ts
+ 32
+
+
+
+ Text
+
+ src/app/data/paperless-custom-field.ts
+ 36
+
+
+
+ Url
+
+ src/app/data/paperless-custom-field.ts
+ 40
+
+
Warning: You have unsaved changes to your document(s).
diff --git a/src/locale/en_US/LC_MESSAGES/django.po b/src/locale/en_US/LC_MESSAGES/django.po
index ab0f1ab00..df680665c 100644
--- a/src/locale/en_US/LC_MESSAGES/django.po
+++ b/src/locale/en_US/LC_MESSAGES/django.po
@@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: paperless-ngx\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2023-10-31 15:23-0700\n"
+"POT-Creation-Date: 2023-11-04 20:12-0700\n"
"PO-Revision-Date: 2022-02-17 04:17\n"
"Last-Translator: \n"
"Language-Team: English\n"
@@ -163,7 +163,7 @@ msgid "The checksum of the archived document."
msgstr ""
#: documents/models.py:205 documents/models.py:385 documents/models.py:654
-#: documents/models.py:692
+#: documents/models.py:692 documents/models.py:895 documents/models.py:932
msgid "created"
msgstr ""
@@ -648,21 +648,69 @@ msgstr ""
msgid "consumption templates"
msgstr ""
-#: documents/serialisers.py:98
+#: documents/models.py:886
+msgid "String"
+msgstr ""
+
+#: documents/models.py:887
+msgid "URL"
+msgstr ""
+
+#: documents/models.py:888
+msgid "Date"
+msgstr ""
+
+#: documents/models.py:889
+msgid "Boolean"
+msgstr ""
+
+#: documents/models.py:890
+msgid "Integer"
+msgstr ""
+
+#: documents/models.py:891
+msgid "Float"
+msgstr ""
+
+#: documents/models.py:892
+msgid "Monetary"
+msgstr ""
+
+#: documents/models.py:904
+msgid "data type"
+msgstr ""
+
+#: documents/models.py:912
+msgid "custom field"
+msgstr ""
+
+#: documents/models.py:913
+msgid "custom fields"
+msgstr ""
+
+#: documents/models.py:973
+msgid "custom field instance"
+msgstr ""
+
+#: documents/models.py:974
+msgid "custom field instances"
+msgstr ""
+
+#: documents/serialisers.py:102
#, python-format
msgid "Invalid regular expression: %(error)s"
msgstr ""
-#: documents/serialisers.py:373
+#: documents/serialisers.py:377
msgid "Invalid color."
msgstr ""
-#: documents/serialisers.py:749
+#: documents/serialisers.py:841
#, python-format
msgid "File type %(type)s not supported"
msgstr ""
-#: documents/serialisers.py:846
+#: documents/serialisers.py:938
msgid "Invalid variable detected."
msgstr ""
@@ -929,7 +977,7 @@ msgstr ""
msgid "Chinese Simplified"
msgstr ""
-#: paperless/urls.py:184
+#: paperless/urls.py:186
msgid "Paperless-ngx administration"
msgstr ""