wagtail 6.1.1__py3-none-any.whl → 6.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. wagtail/__init__.py +1 -1
  2. wagtail/admin/locale/ca/LC_MESSAGES/django.mo +0 -0
  3. wagtail/admin/locale/ca/LC_MESSAGES/django.po +1 -1
  4. wagtail/admin/locale/fa/LC_MESSAGES/django.mo +0 -0
  5. wagtail/admin/locale/fa/LC_MESSAGES/django.po +75 -1
  6. wagtail/admin/locale/fa/LC_MESSAGES/djangojs.mo +0 -0
  7. wagtail/admin/locale/fa/LC_MESSAGES/djangojs.po +5 -1
  8. wagtail/admin/locale/fr/LC_MESSAGES/django.mo +0 -0
  9. wagtail/admin/locale/fr/LC_MESSAGES/django.po +89 -3
  10. wagtail/admin/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  11. wagtail/admin/locale/is_IS/LC_MESSAGES/django.po +228 -2
  12. wagtail/admin/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  13. wagtail/admin/locale/pt_BR/LC_MESSAGES/django.po +20 -1
  14. wagtail/admin/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  15. wagtail/admin/locale/sk_SK/LC_MESSAGES/django.po +11 -1
  16. wagtail/admin/locale/sl/LC_MESSAGES/django.mo +0 -0
  17. wagtail/admin/locale/sl/LC_MESSAGES/django.po +97 -0
  18. wagtail/admin/locale/sv/LC_MESSAGES/django.mo +0 -0
  19. wagtail/admin/locale/sv/LC_MESSAGES/django.po +74 -0
  20. wagtail/admin/locale/sv/LC_MESSAGES/djangojs.mo +0 -0
  21. wagtail/admin/locale/sv/LC_MESSAGES/djangojs.po +5 -2
  22. wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  23. wagtail/admin/locale/zh_Hans/LC_MESSAGES/django.po +71 -1
  24. wagtail/admin/static/wagtailadmin/js/telepath/widgets.js +1 -1
  25. wagtail/admin/views/generic/base.py +3 -2
  26. wagtail/contrib/forms/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  27. wagtail/contrib/forms/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  28. wagtail/contrib/redirects/locale/fa/LC_MESSAGES/django.mo +0 -0
  29. wagtail/contrib/redirects/locale/fa/LC_MESSAGES/django.po +14 -1
  30. wagtail/contrib/redirects/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  31. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.mo +0 -0
  32. wagtail/contrib/search_promotions/locale/fr/LC_MESSAGES/django.po +5 -2
  33. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  34. wagtail/contrib/search_promotions/locale/is_IS/LC_MESSAGES/django.po +6 -2
  35. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.mo +0 -0
  36. wagtail/contrib/search_promotions/locale/sl/LC_MESSAGES/django.po +56 -2
  37. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.mo +0 -0
  38. wagtail/contrib/search_promotions/locale/sv/LC_MESSAGES/django.po +5 -2
  39. wagtail/contrib/settings/locale/hi/LC_MESSAGES/django.po +1 -1
  40. wagtail/contrib/settings/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  41. wagtail/contrib/settings/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  42. wagtail/contrib/settings/locale/sk_SK/LC_MESSAGES/django.po +10 -1
  43. wagtail/contrib/settings/tests/generic/test_admin.py +144 -16
  44. wagtail/contrib/settings/tests/site_specific/test_admin.py +142 -17
  45. wagtail/contrib/settings/views.py +3 -0
  46. wagtail/contrib/simple_translation/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  47. wagtail/contrib/styleguide/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  48. wagtail/contrib/styleguide/locale/sk_SK/LC_MESSAGES/django.po +5 -1
  49. wagtail/contrib/styleguide/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  50. wagtail/contrib/styleguide/locale/zh_Hans/LC_MESSAGES/django.po +3 -0
  51. wagtail/contrib/styleguide/tests.py +33 -0
  52. wagtail/contrib/styleguide/views.py +4 -1
  53. wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.mo +0 -0
  54. wagtail/contrib/table_block/locale/fr/LC_MESSAGES/django.po +27 -1
  55. wagtail/contrib/table_block/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  56. wagtail/contrib/table_block/locale/is_IS/LC_MESSAGES/django.po +28 -2
  57. wagtail/contrib/table_block/locale/sl/LC_MESSAGES/django.mo +0 -0
  58. wagtail/contrib/table_block/locale/sl/LC_MESSAGES/django.po +27 -1
  59. wagtail/contrib/typed_table_block/locale/fr/LC_MESSAGES/django.mo +0 -0
  60. wagtail/contrib/typed_table_block/locale/fr/LC_MESSAGES/django.po +12 -1
  61. wagtail/contrib/typed_table_block/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  62. wagtail/contrib/typed_table_block/locale/is_IS/LC_MESSAGES/django.po +12 -1
  63. wagtail/contrib/typed_table_block/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  64. wagtail/contrib/typed_table_block/locale/sl/LC_MESSAGES/django.mo +0 -0
  65. wagtail/contrib/typed_table_block/locale/sl/LC_MESSAGES/django.po +12 -2
  66. wagtail/documents/locale/ca/LC_MESSAGES/django.mo +0 -0
  67. wagtail/documents/locale/ca/LC_MESSAGES/django.po +3 -2
  68. wagtail/documents/locale/fa/LC_MESSAGES/django.mo +0 -0
  69. wagtail/documents/locale/fa/LC_MESSAGES/django.po +9 -0
  70. wagtail/documents/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  71. wagtail/documents/locale/is_IS/LC_MESSAGES/django.po +17 -2
  72. wagtail/documents/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  73. wagtail/documents/locale/sk_SK/LC_MESSAGES/django.po +45 -2
  74. wagtail/documents/locale/sl/LC_MESSAGES/django.mo +0 -0
  75. wagtail/documents/locale/sl/LC_MESSAGES/django.po +11 -2
  76. wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  77. wagtail/documents/locale/zh_Hans/LC_MESSAGES/django.po +7 -1
  78. wagtail/images/locale/fa/LC_MESSAGES/django.mo +0 -0
  79. wagtail/images/locale/fa/LC_MESSAGES/django.po +20 -1
  80. wagtail/images/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  81. wagtail/images/locale/is_IS/LC_MESSAGES/django.po +28 -2
  82. wagtail/images/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  83. wagtail/images/locale/sk_SK/LC_MESSAGES/django.po +15 -0
  84. wagtail/images/locale/sl/LC_MESSAGES/django.mo +0 -0
  85. wagtail/images/locale/sl/LC_MESSAGES/django.po +14 -2
  86. wagtail/images/locale/sv/LC_MESSAGES/django.mo +0 -0
  87. wagtail/images/locale/sv/LC_MESSAGES/django.po +14 -2
  88. wagtail/images/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  89. wagtail/images/locale/zh_Hans/LC_MESSAGES/django.po +45 -1
  90. wagtail/images/models.py +1 -0
  91. wagtail/images/tests/test_admin_views.py +32 -0
  92. wagtail/images/tests/test_image_operations.py +12 -0
  93. wagtail/images/tests/tests.py +27 -2
  94. wagtail/images/views/images.py +7 -3
  95. wagtail/images/views/serve.py +1 -0
  96. wagtail/locale/fa/LC_MESSAGES/django.mo +0 -0
  97. wagtail/locale/fa/LC_MESSAGES/django.po +3 -0
  98. wagtail/locale/fr/LC_MESSAGES/django.mo +0 -0
  99. wagtail/locale/fr/LC_MESSAGES/django.po +23 -4
  100. wagtail/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  101. wagtail/locale/is_IS/LC_MESSAGES/django.po +22 -2
  102. wagtail/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  103. wagtail/locale/sl/LC_MESSAGES/django.mo +0 -0
  104. wagtail/locale/sl/LC_MESSAGES/django.po +77 -0
  105. wagtail/locale/sv/LC_MESSAGES/django.mo +0 -0
  106. wagtail/locale/sv/LC_MESSAGES/django.po +11 -2
  107. wagtail/locales/locale/it/LC_MESSAGES/django.mo +0 -0
  108. wagtail/locales/locale/it/LC_MESSAGES/django.po +16 -17
  109. wagtail/search/locale/fa/LC_MESSAGES/django.mo +0 -0
  110. wagtail/search/locale/fa/LC_MESSAGES/django.po +24 -0
  111. wagtail/search/locale/pt_BR/LC_MESSAGES/django.mo +0 -0
  112. wagtail/search/locale/pt_BR/LC_MESSAGES/django.po +2 -2
  113. wagtail/search/tests/test_queries.py +24 -0
  114. wagtail/search/utils.py +6 -12
  115. wagtail/snippets/locale/fa/LC_MESSAGES/django.mo +0 -0
  116. wagtail/snippets/locale/fa/LC_MESSAGES/django.po +17 -1
  117. wagtail/snippets/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  118. wagtail/snippets/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  119. wagtail/snippets/locale/sk_SK/LC_MESSAGES/django.po +3 -0
  120. wagtail/snippets/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  121. wagtail/snippets/locale/zh_Hans/LC_MESSAGES/django.po +40 -1
  122. wagtail/test/testapp/templates/tests/icons/single-quotes.svg +1 -0
  123. wagtail/tests/test_blocks.py +27 -0
  124. wagtail/tests/test_utils.py +28 -1
  125. wagtail/users/locale/fa/LC_MESSAGES/django.mo +0 -0
  126. wagtail/users/locale/fa/LC_MESSAGES/django.po +63 -1
  127. wagtail/users/locale/fr/LC_MESSAGES/django.mo +0 -0
  128. wagtail/users/locale/fr/LC_MESSAGES/django.po +44 -3
  129. wagtail/users/locale/is_IS/LC_MESSAGES/django.mo +0 -0
  130. wagtail/users/locale/is_IS/LC_MESSAGES/django.po +44 -2
  131. wagtail/users/locale/pt_BR/LC_MESSAGES/django.po +1 -1
  132. wagtail/users/locale/sk_SK/LC_MESSAGES/django.mo +0 -0
  133. wagtail/users/locale/sk_SK/LC_MESSAGES/django.po +8 -1
  134. wagtail/users/locale/sl/LC_MESSAGES/django.mo +0 -0
  135. wagtail/users/locale/sl/LC_MESSAGES/django.po +46 -2
  136. wagtail/users/locale/sv/LC_MESSAGES/django.mo +0 -0
  137. wagtail/users/locale/sv/LC_MESSAGES/django.po +41 -2
  138. wagtail/users/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  139. wagtail/users/locale/zh_Hans/LC_MESSAGES/django.po +45 -1
  140. wagtail/utils/utils.py +26 -0
  141. wagtail/widget_adapters.py +1 -1
  142. {wagtail-6.1.1.dist-info → wagtail-6.1.3.dist-info}/METADATA +1 -1
  143. {wagtail-6.1.1.dist-info → wagtail-6.1.3.dist-info}/RECORD +147 -145
  144. {wagtail-6.1.1.dist-info → wagtail-6.1.3.dist-info}/LICENSE +0 -0
  145. {wagtail-6.1.1.dist-info → wagtail-6.1.3.dist-info}/WHEEL +0 -0
  146. {wagtail-6.1.1.dist-info → wagtail-6.1.3.dist-info}/entry_points.txt +0 -0
  147. {wagtail-6.1.1.dist-info → wagtail-6.1.3.dist-info}/top_level.txt +0 -0
@@ -5,6 +5,7 @@
5
5
  # Translators:
6
6
  # David Llop, 2014
7
7
  # David Llop, 2014
8
+ # Matt Westcott <matthew@torchbox.com>, 2024
8
9
  # Roger Pons <rogerpons@gmail.com>, 2017,2022-2024
9
10
  msgid ""
10
11
  msgstr ""
@@ -12,7 +13,7 @@ msgstr ""
12
13
  "Report-Msgid-Bugs-To: \n"
13
14
  "POT-Creation-Date: 2024-05-02 10:04+0100\n"
14
15
  "PO-Revision-Date: 2014-02-20 21:06+0000\n"
15
- "Last-Translator: Roger Pons <rogerpons@gmail.com>, 2017,2022-2024\n"
16
+ "Last-Translator: Matt Westcott <matthew@torchbox.com>, 2024\n"
16
17
  "Language-Team: Catalan (http://app.transifex.com/torchbox/wagtail/language/"
17
18
  "ca/)\n"
18
19
  "MIME-Version: 1.0\n"
@@ -229,7 +230,7 @@ msgid ""
229
230
  "href=\"%(wagtaildocs_add_document_url)s\">upload one now</a>?"
230
231
  msgstr ""
231
232
  "No has pujat cap document. Per què no <a "
232
- "href=%(wagtaildocs_add_document_url)s\">pujes un ara</a>?"
233
+ "href=\"%(wagtaildocs_add_document_url)s\">pujes un ara</a>?"
233
234
 
234
235
  #, python-format
235
236
  msgid ""
@@ -67,6 +67,12 @@ msgstr "سند"
67
67
  msgid "documents"
68
68
  msgstr "مستندات"
69
69
 
70
+ msgid "Yes, add"
71
+ msgstr "بله اضافه کن"
72
+
73
+ msgid "No, don't add"
74
+ msgstr "نه، اضافه نکن"
75
+
70
76
  msgid "Are you sure you want to delete this document?"
71
77
  msgid_plural "Are you sure you want to delete these documents?"
72
78
  msgstr[0] "آیا از حذف این سند اطمینان دارید؟"
@@ -189,6 +195,9 @@ msgstr "مجوزهای سند"
189
195
  msgid "Add a document permission"
190
196
  msgstr "افزودن یک مجوز سند"
191
197
 
198
+ msgid "Tag"
199
+ msgstr "برچسب"
200
+
192
201
  msgid "Delete"
193
202
  msgstr "حذف"
194
203
 
@@ -3,7 +3,7 @@
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
4
  #
5
5
  # Translators:
6
- # Arnar Tumi Þorsteinsson <arnartumi@gmail.com>, 2015-2016,2018
6
+ # Arnar Tumi Þorsteinsson <arnartumi@gmail.com>, 2015-2016,2018,2024
7
7
  # saevarom <saevar@saevar.is>, 2017-2022
8
8
  msgid ""
9
9
  msgstr ""
@@ -11,7 +11,8 @@ msgstr ""
11
11
  "Report-Msgid-Bugs-To: \n"
12
12
  "POT-Creation-Date: 2024-05-02 10:04+0100\n"
13
13
  "PO-Revision-Date: 2014-02-20 21:06+0000\n"
14
- "Last-Translator: saevarom <saevar@saevar.is>, 2017-2022\n"
14
+ "Last-Translator: Arnar Tumi Þorsteinsson <arnartumi@gmail.com>, "
15
+ "2015-2016,2018,2024\n"
15
16
  "Language-Team: Icelandic (Iceland) (http://app.transifex.com/torchbox/"
16
17
  "wagtail/language/is_IS/)\n"
17
18
  "MIME-Version: 1.0\n"
@@ -224,6 +225,20 @@ msgstr ""
224
225
  "Þú hefur ekki hlaðið neinum skrám. Hví ekki að<a "
225
226
  "href=\"%(wagtaildocs_add_document_url)s\">hlaða inn nokkrum núna</a>?"
226
227
 
228
+ #, python-format
229
+ msgid ""
230
+ "<span>%(total)s</span> Document <span class=\"w-sr-only\">created in "
231
+ "%(site_name)s</span>"
232
+ msgid_plural ""
233
+ "<span>%(total)s</span> Documents <span class=\"w-sr-only\">created in "
234
+ "%(site_name)s</span>"
235
+ msgstr[0] ""
236
+ "<span>%(total)s</span> skrá <span class=\"w-sr-only\">búin til í "
237
+ "%(site_name)s</span>"
238
+ msgstr[1] ""
239
+ "<span>%(total)s</span> skrár <span class=\"w-sr-only\">búnar til í "
240
+ "%(site_name)s</span>"
241
+
227
242
  msgid "Add multiple documents"
228
243
  msgstr "Bæta við mörgum skrám"
229
244
 
@@ -4,6 +4,7 @@
4
4
  #
5
5
  # Translators:
6
6
  # dellax <michalnebbia@gmail.com>, 2015
7
+ # Ivan Waginger <ivan.waginger@gmail.com>, 2024
7
8
  # Martin Janšto <mato@jansto.sk>, 2017
8
9
  # Martin Janšto <mato@jansto.sk>, 2017
9
10
  # dellax <michalnebbia@gmail.com>, 2015
@@ -13,7 +14,7 @@ msgstr ""
13
14
  "Report-Msgid-Bugs-To: \n"
14
15
  "POT-Creation-Date: 2024-05-02 10:04+0100\n"
15
16
  "PO-Revision-Date: 2014-02-20 21:06+0000\n"
16
- "Last-Translator: dellax <michalnebbia@gmail.com>, 2015\n"
17
+ "Last-Translator: Ivan Waginger <ivan.waginger@gmail.com>, 2024\n"
17
18
  "Language-Team: Slovak (Slovakia) (http://app.transifex.com/torchbox/wagtail/"
18
19
  "language/sk_SK/)\n"
19
20
  "MIME-Version: 1.0\n"
@@ -23,8 +24,11 @@ msgstr ""
23
24
  "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n "
24
25
  ">= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
25
26
 
27
+ msgid "Wagtail documents"
28
+ msgstr "Wagtail dokumenty"
29
+
26
30
  msgid "Collection"
27
- msgstr "Kolekcie"
31
+ msgstr "Kolekcia"
28
32
 
29
33
  msgid "Add"
30
34
  msgstr "Pridať"
@@ -59,9 +63,30 @@ msgstr "tagy"
59
63
  msgid "document"
60
64
  msgstr "dokument"
61
65
 
66
+ msgid "documents"
67
+ msgstr "dokumenty"
68
+
69
+ msgid "Add tags to documents"
70
+ msgstr "Pridať tagy k dokumentom"
71
+
72
+ msgid "Yes, add"
73
+ msgstr "Áno, pridať"
74
+
75
+ msgid "No, don't add"
76
+ msgstr "Nie, nepridať"
77
+
78
+ msgid "Add documents to collection"
79
+ msgstr "Pridať dokumenty do zbierky"
80
+
81
+ msgid "Delete documents"
82
+ msgstr "Zmazať dokumenty"
83
+
62
84
  msgid "Yes, delete"
63
85
  msgstr "Áno, zmazať"
64
86
 
87
+ msgid "No, don't delete"
88
+ msgstr "Nie, nezmazať"
89
+
65
90
  msgid "Latest documents"
66
91
  msgstr "Posledné dokumenty"
67
92
 
@@ -140,6 +165,9 @@ msgstr "Pridať do kolekcie:"
140
165
  msgid "Sorry, upload failed."
141
166
  msgstr "Prepáčte, ale nahrávanie zlihalo."
142
167
 
168
+ msgid "Document updated."
169
+ msgstr "Dokument bol aktualizovaný."
170
+
143
171
  msgid "You need a password to access this document."
144
172
  msgstr "K prístupu k tomuto dokumentu potrebujete heslo."
145
173
 
@@ -152,9 +180,24 @@ msgstr "Pridať oprávnenia dokumentu"
152
180
  msgid "Tags"
153
181
  msgstr "Tagy"
154
182
 
183
+ msgid "Tag"
184
+ msgstr "Tag"
185
+
186
+ msgid "Add tags to the selected documents"
187
+ msgstr "Pridať tagy k vybraným dokumentom"
188
+
189
+ msgid "Add to collection"
190
+ msgstr "Pridať do zbierky"
191
+
192
+ msgid "Add selected documents to collection"
193
+ msgstr "Pridať vybrané dokumenty do zbierky"
194
+
155
195
  msgid "Delete"
156
196
  msgstr "Vymazať"
157
197
 
198
+ msgid "Delete selected documents"
199
+ msgstr "Vymazať vybrané dokumenty"
200
+
158
201
  msgid "File"
159
202
  msgstr "Súbor"
160
203
 
@@ -5,7 +5,7 @@
5
5
  # Translators:
6
6
  # Andrej Marsetič, 2022
7
7
  # Andrej Marsetič, 2022
8
- # Andrej Marsetič, 2022-2023
8
+ # Andrej Marsetič, 2022-2024
9
9
  # Matt Westcott <matthew@torchbox.com>, 2016
10
10
  # Mitja Pagon <mitja.pagon@inueni.com>, 2016
11
11
  msgid ""
@@ -14,7 +14,7 @@ msgstr ""
14
14
  "Report-Msgid-Bugs-To: \n"
15
15
  "POT-Creation-Date: 2024-05-02 10:04+0100\n"
16
16
  "PO-Revision-Date: 2014-02-20 21:06+0000\n"
17
- "Last-Translator: Andrej Marsetič, 2022-2023\n"
17
+ "Last-Translator: Andrej Marsetič, 2022-2024\n"
18
18
  "Language-Team: Slovenian (http://app.transifex.com/torchbox/wagtail/language/"
19
19
  "sl/)\n"
20
20
  "MIME-Version: 1.0\n"
@@ -314,6 +314,15 @@ msgstr "Dodaj v zbirko"
314
314
  msgid "Add selected documents to collection"
315
315
  msgstr "Dodajte izbrane dokumente v zbirko"
316
316
 
317
+ #, python-format
318
+ msgid "%(num_parent_objects)d document has been added to %(collection)s"
319
+ msgid_plural ""
320
+ "%(num_parent_objects)d documents have been added to %(collection)s"
321
+ msgstr[0] "V %(collection)s je bilo dodan %(num_parent_objects)d dokument"
322
+ msgstr[1] "V %(collection)s sta bila dodana %(num_parent_objects)d dokumenta"
323
+ msgstr[2] "V %(collection)s je bilo dodanih %(num_parent_objects)d dokumentov"
324
+ msgstr[3] "V %(collection)s je bilo dodanih %(num_parent_objects)d dokumentov"
325
+
317
326
  msgid "Delete"
318
327
  msgstr "Izbriši"
319
328
 
@@ -12,6 +12,7 @@
12
12
  # 祝沙军 <zhushajun@gmail.com>, 2017
13
13
  # Vincent Zhao <zhaopu2008@gmail.com>, 2017
14
14
  # Yin Guanhao <sopium@mysterious.site>, 2020-2021
15
+ # Yu Cheng, 2024
15
16
  # 祝沙军 <zhushajun@gmail.com>, 2017
16
17
  # 汇民 王 <whuim@qq.com>, 2017-2021
17
18
  # 祝沙军 <zhushajun@gmail.com>, 2017
@@ -21,7 +22,7 @@ msgstr ""
21
22
  "Report-Msgid-Bugs-To: \n"
22
23
  "POT-Creation-Date: 2024-05-02 10:04+0100\n"
23
24
  "PO-Revision-Date: 2014-02-20 21:06+0000\n"
24
- "Last-Translator: Ford Guo <agile.guo@gmail.com>, 2023\n"
25
+ "Last-Translator: Yu Cheng, 2024\n"
25
26
  "Language-Team: Chinese (China) (http://app.transifex.com/torchbox/wagtail/"
26
27
  "language/zh_CN/)\n"
27
28
  "MIME-Version: 1.0\n"
@@ -97,6 +98,11 @@ msgstr "是的,添加"
97
98
  msgid "No, don't add"
98
99
  msgstr "否,不添加"
99
100
 
101
+ #, python-format
102
+ msgid "Add 1 document to new collection"
103
+ msgid_plural "Add %(counter)s documents to new collection"
104
+ msgstr[0] "将 %(counter)s 个文档添加到新集合"
105
+
100
106
  msgid "Add documents to collection"
101
107
  msgstr "将文档添加到集合"
102
108
 
@@ -5,6 +5,7 @@
5
5
  # Translators:
6
6
  # Amir Mahmoodi, 2022
7
7
  # Amir Mahmoodi, 2022
8
+ # Bardia Khoshroo, 2024
8
9
  # Matt Westcott <matthew@torchbox.com>, 2022
9
10
  # Mohammad Hossein Mojtahedi <Mhm5000@gmail.com>, 2017
10
11
  # pyzenberg <pyzenberg@gmail.com>, 2017
@@ -15,7 +16,7 @@ msgstr ""
15
16
  "Report-Msgid-Bugs-To: \n"
16
17
  "POT-Creation-Date: 2024-05-02 10:04+0100\n"
17
18
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
18
- "Last-Translator: pyzenberg <pyzenberg@gmail.com>, 2017\n"
19
+ "Last-Translator: Bardia Khoshroo, 2024\n"
19
20
  "Language-Team: Persian (http://app.transifex.com/torchbox/wagtail/language/"
20
21
  "fa/)\n"
21
22
  "MIME-Version: 1.0\n"
@@ -24,6 +25,9 @@ msgstr ""
24
25
  "Language: fa\n"
25
26
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
26
27
 
28
+ msgid "Wagtail images"
29
+ msgstr "تصاویر وگتیل"
30
+
27
31
  #, python-format
28
32
  msgid ""
29
33
  "Supported formats: %(supported_formats)s. Maximum filesize: "
@@ -144,6 +148,12 @@ msgid_plural "You don't have permission to add tags to these images"
144
148
  msgstr[0] "شما مجوز اضافه کردن برچسب به این تصویر را ندارید"
145
149
  msgstr[1] "شما مجوز اضافه کردن برچسب به این تصاویر را ندارید"
146
150
 
151
+ msgid "Yes, add"
152
+ msgstr "بله اضافه کن"
153
+
154
+ msgid "No, don't add"
155
+ msgstr "خیر، اضافه نکن"
156
+
147
157
  msgid "Add images to collection"
148
158
  msgstr "اضافه کردن تصاویر به مجموعه"
149
159
 
@@ -152,6 +162,9 @@ msgid_plural "You don't have permission to add these images to a collection"
152
162
  msgstr[0] "شما مجوز اضافه کردن این تصویر به مجموعه را ندارید"
153
163
  msgstr[1] "شما مجوز اضافه کردن این تصاویر به مجموعه را ندارید"
154
164
 
165
+ msgid "Delete images"
166
+ msgstr "تصاویر را حذف کن"
167
+
155
168
  msgid "Are you sure you want to delete this image?"
156
169
  msgid_plural "Are you sure you want to delete these images?"
157
170
  msgstr[0] "آیا از حذف این تصویر اطمینان دارید؟"
@@ -180,6 +193,9 @@ msgstr "برچسب های پرتکرار"
180
193
  msgid "New"
181
194
  msgstr "جدید"
182
195
 
196
+ msgid "Use new image"
197
+ msgstr "استفاده از تصویر جدید"
198
+
183
199
  msgid "Latest images"
184
200
  msgstr "آخرین تصاویر"
185
201
 
@@ -307,6 +323,9 @@ msgstr "مجوزهای تصویر"
307
323
  msgid "Add an image permission"
308
324
  msgstr "افزودن مجوز تصویر"
309
325
 
326
+ msgid "Tag"
327
+ msgstr "برچسب"
328
+
310
329
  #, python-format
311
330
  msgid "New tags have been added to %(num_parent_objects)d image"
312
331
  msgid_plural "New tags have been added to %(num_parent_objects)d images"
@@ -3,7 +3,7 @@
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
4
  #
5
5
  # Translators:
6
- # Arnar Tumi Þorsteinsson <arnartumi@gmail.com>, 2015-2018,2021-2023
6
+ # Arnar Tumi Þorsteinsson <arnartumi@gmail.com>, 2015-2018,2021-2024
7
7
  # saevarom <saevar@saevar.is>, 2015,2019-2022
8
8
  msgid ""
9
9
  msgstr ""
@@ -12,7 +12,7 @@ msgstr ""
12
12
  "POT-Creation-Date: 2024-05-02 10:04+0100\n"
13
13
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
14
14
  "Last-Translator: Arnar Tumi Þorsteinsson <arnartumi@gmail.com>, "
15
- "2015-2018,2021-2023\n"
15
+ "2015-2018,2021-2024\n"
16
16
  "Language-Team: Icelandic (Iceland) (http://app.transifex.com/torchbox/"
17
17
  "wagtail/language/is_IS/)\n"
18
18
  "MIME-Version: 1.0\n"
@@ -294,6 +294,20 @@ msgstr "Veldu snið"
294
294
  msgid "Insert image"
295
295
  msgstr "Setja inn mynd"
296
296
 
297
+ #, python-format
298
+ msgid ""
299
+ "<span>%(total)s</span> Image <span class=\"w-sr-only\">created in "
300
+ "%(site_name)s</span>"
301
+ msgid_plural ""
302
+ "<span>%(total)s</span> Images <span class=\"w-sr-only\">created in "
303
+ "%(site_name)s</span>"
304
+ msgstr[0] ""
305
+ "<span>%(total)s</span> mynd <span class=\"w-sr-only\">búin til í "
306
+ "%(site_name)s</span>"
307
+ msgstr[1] ""
308
+ "<span>%(total)s</span> myndir <span class=\"w-sr-only\">búnar til í "
309
+ "%(site_name)s</span>"
310
+
297
311
  msgid "Change image file:"
298
312
  msgstr "Breyta um myndaskrá:"
299
313
 
@@ -391,6 +405,18 @@ msgstr "Forskoðun"
391
405
  msgid "URL"
392
406
  msgstr "Slóð"
393
407
 
408
+ msgid "Image URL"
409
+ msgstr "vefslóð myndar"
410
+
411
+ msgid "Copy URL"
412
+ msgstr "Afrita slóð"
413
+
414
+ msgid "Copied to clipboard"
415
+ msgstr "Afritað á klemmuspjald"
416
+
417
+ msgid "Copying to clipboard failed"
418
+ msgstr "Ekki tókst að afrita á klemmuspjald"
419
+
394
420
  msgid "Add multiple images"
395
421
  msgstr "Bæta við mörgum myndum"
396
422
 
@@ -134,9 +134,18 @@ msgstr "tagy"
134
134
  msgid "image"
135
135
  msgstr "obrázok"
136
136
 
137
+ msgid "Yes, add"
138
+ msgstr "Áno, pridať"
139
+
140
+ msgid "No, don't add"
141
+ msgstr "Nie, nepridať"
142
+
137
143
  msgid "Yes, delete"
138
144
  msgstr "Áno, zmazať"
139
145
 
146
+ msgid "No, don't delete"
147
+ msgstr "Nie, nezmazať"
148
+
140
149
  msgid "Popular tags"
141
150
  msgstr "Populárne tagy"
142
151
 
@@ -262,6 +271,12 @@ msgstr "Pridať oprávnenia obrázku"
262
271
  msgid "Tags"
263
272
  msgstr "Tagy"
264
273
 
274
+ msgid "Tag"
275
+ msgstr "Tag"
276
+
277
+ msgid "Add to collection"
278
+ msgstr "Pridať do zbierky"
279
+
265
280
  msgid "Delete"
266
281
  msgstr "Vymazať"
267
282
 
@@ -5,7 +5,7 @@
5
5
  # Translators:
6
6
  # Andrej Marsetič, 2022
7
7
  # Andrej Marsetič, 2022
8
- # Andrej Marsetič, 2022-2023
8
+ # Andrej Marsetič, 2022-2024
9
9
  # Mitja Pagon <mitja.pagon@inueni.com>, 2016
10
10
  # UP, 2021
11
11
  # UP, 2021
@@ -15,7 +15,7 @@ msgstr ""
15
15
  "Report-Msgid-Bugs-To: \n"
16
16
  "POT-Creation-Date: 2024-05-02 10:04+0100\n"
17
17
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
18
- "Last-Translator: Andrej Marsetič, 2022-2023\n"
18
+ "Last-Translator: Andrej Marsetič, 2022-2024\n"
19
19
  "Language-Team: Slovenian (http://app.transifex.com/torchbox/wagtail/language/"
20
20
  "sl/)\n"
21
21
  "MIME-Version: 1.0\n"
@@ -420,6 +420,18 @@ msgstr "Predogled"
420
420
  msgid "URL"
421
421
  msgstr "URL"
422
422
 
423
+ msgid "Image URL"
424
+ msgstr "URL naslov slike"
425
+
426
+ msgid "Copy URL"
427
+ msgstr "Kopiraj URL"
428
+
429
+ msgid "Copied to clipboard"
430
+ msgstr "Kopirano v odložišče"
431
+
432
+ msgid "Copying to clipboard failed"
433
+ msgstr "Kopiranje v odložišče ni uspelo"
434
+
423
435
  msgid "Add multiple images"
424
436
  msgstr "Dodaj več slik"
425
437
 
@@ -4,7 +4,7 @@
4
4
  #
5
5
  # Translators:
6
6
  # Jim Brouzoulis <jim.brouzoulis@chalmers.se>, 2017
7
- # Martin Sandström <martin@marteinn.se>, 2020-2023
7
+ # Martin Sandström <martin@marteinn.se>, 2020-2024
8
8
  # Matt Westcott <matthew@torchbox.com>, 2022
9
9
  # Oscar Fröberg <oscfr657@gmail.com>, 2020
10
10
  # Philip Andersen <renegadevi@codeofmagi.net>, 2018-2019
@@ -15,7 +15,7 @@ msgstr ""
15
15
  "Report-Msgid-Bugs-To: \n"
16
16
  "POT-Creation-Date: 2024-05-02 10:04+0100\n"
17
17
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
18
- "Last-Translator: Martin Sandström <martin@marteinn.se>, 2020-2023\n"
18
+ "Last-Translator: Martin Sandström <martin@marteinn.se>, 2020-2024\n"
19
19
  "Language-Team: Swedish (http://app.transifex.com/torchbox/wagtail/language/"
20
20
  "sv/)\n"
21
21
  "MIME-Version: 1.0\n"
@@ -394,6 +394,18 @@ msgstr "Förhandsgranska"
394
394
  msgid "URL"
395
395
  msgstr "URL"
396
396
 
397
+ msgid "Image URL"
398
+ msgstr "Bild URL"
399
+
400
+ msgid "Copy URL"
401
+ msgstr "Kopiera URL"
402
+
403
+ msgid "Copied to clipboard"
404
+ msgstr "Kopierad till utklipp"
405
+
406
+ msgid "Copying to clipboard failed"
407
+ msgstr "Kopiering till urklipp misslyckades"
408
+
397
409
  msgid "Add multiple images"
398
410
  msgstr "Lägg till flera bilder"
399
411
 
@@ -14,6 +14,7 @@
14
14
  # Matt Westcott <matthew@torchbox.com>, 2022
15
15
  # Vincent Zhao <zhaopu2008@gmail.com>, 2017
16
16
  # Yin Guanhao <sopium@mysterious.site>, 2020-2021
17
+ # Yu Cheng, 2024
17
18
  # 汇民 王 <whuim@qq.com>, 2017-2021
18
19
  msgid ""
19
20
  msgstr ""
@@ -21,7 +22,7 @@ msgstr ""
21
22
  "Report-Msgid-Bugs-To: \n"
22
23
  "POT-Creation-Date: 2024-05-02 10:04+0100\n"
23
24
  "PO-Revision-Date: 2014-02-20 21:05+0000\n"
24
- "Last-Translator: Ford Guo <agile.guo@gmail.com>, 2023\n"
25
+ "Last-Translator: Yu Cheng, 2024\n"
25
26
  "Language-Team: Chinese (China) (http://app.transifex.com/torchbox/wagtail/"
26
27
  "language/zh_CN/)\n"
27
28
  "MIME-Version: 1.0\n"
@@ -47,6 +48,13 @@ msgstr "支持的格式:%(supported_formats)s。"
47
48
  msgid "Not a supported image format. Supported formats: %(supported_formats)s."
48
49
  msgstr "不支持的图片格式。支持类型如下: %(supported_formats)s"
49
50
 
51
+ #, python-format
52
+ msgid ""
53
+ "Not a valid .%(extension)s image. The extension does not match the file "
54
+ "format (%(image_format)s)"
55
+ msgstr ""
56
+ "不是有效的 .%(extension)s 图像。扩展名与文件格式不匹配 (%(image_format)s)"
57
+
50
58
  #, python-format
51
59
  msgid ""
52
60
  "This file is too big (%(file_size)s). Maximum filesize %(max_filesize)s."
@@ -184,6 +192,11 @@ msgstr "是的,添加"
184
192
  msgid "No, don't add"
185
193
  msgstr "否,不添加"
186
194
 
195
+ #, python-format
196
+ msgid "Add 1 image to new collection"
197
+ msgid_plural "Add %(counter)s images to new collection"
198
+ msgstr[0] "将 %(counter)s 张图像添加到新集合"
199
+
187
200
  msgid "Add images to collection"
188
201
  msgstr "将图片添加到集合"
189
202
 
@@ -227,6 +240,13 @@ msgstr "否,不删除"
227
240
  msgid "Popular tags"
228
241
  msgstr "热门标签"
229
242
 
243
+ msgid ""
244
+ "Upload successful. However, your new image seems to be a duplicate of an "
245
+ "existing image. You may delete it if it wasn't required."
246
+ msgstr ""
247
+ "上传成功。但是,您上传的新图像似乎与现有图像重复。如果不需要,您可以将其删"
248
+ "除。"
249
+
230
250
  msgid "Existing"
231
251
  msgstr "已存在"
232
252
 
@@ -246,6 +266,9 @@ msgstr "最新图片"
246
266
  msgid "Select %(title)s"
247
267
  msgstr "选择 %(title)s"
248
268
 
269
+ msgid "You haven't uploaded any images in this collection."
270
+ msgstr "您尚未上传此集合中的任何图片。"
271
+
249
272
  msgid ""
250
273
  "Why not <a class=\"upload-one-now\" href=\"#tab-upload\" data-tab-"
251
274
  "trigger>upload one now</a>?"
@@ -319,6 +342,9 @@ msgstr "未找到文件"
319
342
  msgid "Usage"
320
343
  msgstr "使用情况"
321
344
 
345
+ msgid "Sort by"
346
+ msgstr "排序方式"
347
+
322
348
  msgid "Select all images in listing"
323
349
  msgstr "选择列表中的所有图片"
324
350
 
@@ -347,6 +373,18 @@ msgstr "预览"
347
373
  msgid "URL"
348
374
  msgstr "URL"
349
375
 
376
+ msgid "Image URL"
377
+ msgstr "图片URL"
378
+
379
+ msgid "Copy URL"
380
+ msgstr "复制URL"
381
+
382
+ msgid "Copied to clipboard"
383
+ msgstr "已复制到剪贴板"
384
+
385
+ msgid "Copying to clipboard failed"
386
+ msgstr "复制到剪贴板失败"
387
+
350
388
  msgid "Add multiple images"
351
389
  msgstr "添加多个图片"
352
390
 
@@ -450,6 +488,12 @@ msgstr "标题: (A -> Z)"
450
488
  msgid "Title: (Z -> A)"
451
489
  msgstr "标题: (Z -> A)"
452
490
 
491
+ msgid "File size: (low to high)"
492
+ msgstr "文件大小:(从小到大)"
493
+
494
+ msgid "File size: (high to low)"
495
+ msgstr "文件大小:(从大到小)"
496
+
453
497
  msgid "Images"
454
498
  msgstr "图片"
455
499
 
wagtail/images/models.py CHANGED
@@ -59,6 +59,7 @@ IMAGE_FORMAT_EXTENSIONS = {
59
59
  "gif": ".gif",
60
60
  "webp": ".webp",
61
61
  "svg": ".svg",
62
+ "ico": ".ico",
62
63
  }
63
64
 
64
65
 
@@ -1,6 +1,7 @@
1
1
  import datetime
2
2
  import json
3
3
  import urllib
4
+ from unittest.mock import patch
4
5
 
5
6
  from django.conf import settings
6
7
  from django.contrib.auth.models import Group, Permission
@@ -14,6 +15,8 @@ from django.utils.encoding import force_str
14
15
  from django.utils.html import escape, escapejs
15
16
  from django.utils.http import RFC3986_SUBDELIMS, urlencode
16
17
  from django.utils.safestring import mark_safe
18
+ from willow.optimizers.base import OptimizerBase
19
+ from willow.registry import registry
17
20
 
18
21
  from wagtail.admin.admin_url_finder import AdminURLFinder
19
22
  from wagtail.images import get_image_model
@@ -3519,6 +3522,35 @@ class TestPreviewView(WagtailTestUtils, TestCase):
3519
3522
  self.assertEqual(response.status_code, 200)
3520
3523
  self.assertEqual(response["Content-Type"], "image/png")
3521
3524
 
3525
+ def test_preview_with_optimizer(self):
3526
+ """
3527
+ Test that preview works with optimizers
3528
+
3529
+ Willow optimizers require
3530
+ """
3531
+
3532
+ class DummyOptimizer(OptimizerBase):
3533
+ library_name = "dummy"
3534
+ image_format = "png"
3535
+
3536
+ @classmethod
3537
+ def check_library(cls):
3538
+ return True
3539
+
3540
+ @classmethod
3541
+ def process(cls, file_path: str):
3542
+ pass
3543
+
3544
+ # Get the image
3545
+ with patch.object(registry, "_registered_optimizers", [DummyOptimizer]):
3546
+ response = self.client.get(
3547
+ reverse("wagtailimages:preview", args=(self.image.id, "fill-800x600"))
3548
+ )
3549
+
3550
+ # Check response
3551
+ self.assertEqual(response.status_code, 200)
3552
+ self.assertEqual(response["Content-Type"], "image/png")
3553
+
3522
3554
  def test_get_invalid_filter_spec(self):
3523
3555
  """
3524
3556
  Test that an invalid filter spec returns a 400 response