aa-bulletin-board 2.0.0b1__py3-none-any.whl → 2.0.1__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.
- aa_bulletin_board/__init__.py +1 -1
- aa_bulletin_board/auth_hooks.py +1 -1
- aa_bulletin_board/locale/cs/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/cs/LC_MESSAGES/django.po +178 -0
- aa_bulletin_board/locale/de/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/de/LC_MESSAGES/django.po +44 -36
- aa_bulletin_board/locale/django.pot +39 -31
- aa_bulletin_board/locale/es/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/es/LC_MESSAGES/django.po +47 -39
- aa_bulletin_board/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/fr_FR/LC_MESSAGES/django.po +42 -34
- aa_bulletin_board/locale/it_IT/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/it_IT/LC_MESSAGES/django.po +43 -35
- aa_bulletin_board/locale/ja/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/ja/LC_MESSAGES/django.po +43 -35
- aa_bulletin_board/locale/ko_KR/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/ko_KR/LC_MESSAGES/django.po +50 -38
- aa_bulletin_board/locale/nl/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/nl/LC_MESSAGES/django.po +175 -0
- aa_bulletin_board/locale/pl_PL/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/pl_PL/LC_MESSAGES/django.po +178 -0
- aa_bulletin_board/locale/ru/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/ru/LC_MESSAGES/django.po +47 -37
- aa_bulletin_board/locale/sk/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/sk/LC_MESSAGES/django.po +178 -0
- aa_bulletin_board/locale/uk/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/uk/LC_MESSAGES/django.po +48 -38
- aa_bulletin_board/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
- aa_bulletin_board/locale/zh_Hans/LC_MESSAGES/django.po +70 -59
- aa_bulletin_board/static/aa_bulletin_board/css/aa-bulletin-board.css +1 -2
- aa_bulletin_board/static/aa_bulletin_board/css/aa-bulletin-board.min.css +1 -1
- aa_bulletin_board/static/aa_bulletin_board/css/aa-bulletin-board.min.css.map +1 -1
- aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-oembed.js +35 -37
- aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-oembed.min.js +1 -1
- aa_bulletin_board/static/aa_bulletin_board/javascript/aa-bulletin-board-oembed.min.js.map +1 -1
- aa_bulletin_board/templates/aa_bulletin_board/dashboard.html +1 -1
- aa_bulletin_board/tests/test_auth_hooks.py +1 -1
- {aa_bulletin_board-2.0.0b1.dist-info → aa_bulletin_board-2.0.1.dist-info}/METADATA +13 -10
- {aa_bulletin_board-2.0.0b1.dist-info → aa_bulletin_board-2.0.1.dist-info}/RECORD +41 -33
- {aa_bulletin_board-2.0.0b1.dist-info → aa_bulletin_board-2.0.1.dist-info}/WHEEL +1 -1
- {aa_bulletin_board-2.0.0b1.dist-info → aa_bulletin_board-2.0.1.dist-info}/licenses/LICENSE +0 -0
@@ -1,16 +1,16 @@
|
|
1
1
|
# SOME DESCRIPTIVE TITLE.
|
2
2
|
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3
3
|
# This file is distributed under the same license as the PACKAGE package.
|
4
|
-
# Peter Pfeufer <info@ppfeufer.de>, 2023.
|
5
|
-
# "Andrii M." <elfleg0las88@gmail.com>, 2023.
|
6
|
-
# Kristof <kristof@teh.ninja>, 2023.
|
4
|
+
# Peter Pfeufer <info@ppfeufer.de>, 2023, 2024.
|
5
|
+
# "Andrii M." <elfleg0las88@gmail.com>, 2023, 2024.
|
6
|
+
# Kristof <kristof@teh.ninja>, 2023, 2024.
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
9
|
"Project-Id-Version: PACKAGE VERSION\n"
|
10
10
|
"Report-Msgid-Bugs-To: \n"
|
11
|
-
"POT-Creation-Date:
|
12
|
-
"PO-Revision-Date:
|
13
|
-
"Last-Translator:
|
11
|
+
"POT-Creation-Date: 2024-03-15 18:14+0100\n"
|
12
|
+
"PO-Revision-Date: 2024-05-10 13:57+0000\n"
|
13
|
+
"Last-Translator: Kristof <kristof@teh.ninja>\n"
|
14
14
|
"Language-Team: Ukrainian <https://weblate.ppfeufer.de/projects/"
|
15
15
|
"alliance-auth-apps/aa-bulletin-board/uk/>\n"
|
16
16
|
"Language: uk\n"
|
@@ -19,12 +19,12 @@ msgstr ""
|
|
19
19
|
"Content-Transfer-Encoding: 8bit\n"
|
20
20
|
"Plural-Forms: nplurals=4; plural=n==1 ? 3 : (n%10==1 && n%100!=11 ? 0 : "
|
21
21
|
"n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
22
|
-
"X-Generator: Weblate 5.
|
22
|
+
"X-Generator: Weblate 5.5.3\n"
|
23
23
|
|
24
|
-
#: aa_bulletin_board/__init__.py:
|
25
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/base.html:
|
24
|
+
#: aa_bulletin_board/__init__.py:9 aa_bulletin_board/models.py:67
|
25
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/base.html:6
|
26
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/base.html:10
|
26
27
|
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:5
|
27
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:6
|
28
28
|
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:8
|
29
29
|
msgid "Bulletin Board"
|
30
30
|
msgstr "Дошка оголошень"
|
@@ -35,7 +35,7 @@ msgstr "Дошка оголошень"
|
|
35
35
|
msgid "Bulletin Board v{__version__}"
|
36
36
|
msgstr "Дошка оголошень v{__version__}"
|
37
37
|
|
38
|
-
#: aa_bulletin_board/forms.py:
|
38
|
+
#: aa_bulletin_board/forms.py:65
|
39
39
|
msgid ""
|
40
40
|
"Restrict this bulletin to certain groups. If no group restrictions are in "
|
41
41
|
"place, everyone who has access to this module can read this bulletin."
|
@@ -44,6 +44,10 @@ msgstr ""
|
|
44
44
|
"групових обмежень, кожен, хто має доступ до цього модуля, зможе прочитати "
|
45
45
|
"цей бюлетень."
|
46
46
|
|
47
|
+
#: aa_bulletin_board/forms.py:112
|
48
|
+
msgid "You have forgotten the content!"
|
49
|
+
msgstr ""
|
50
|
+
|
47
51
|
#: aa_bulletin_board/models.py:71
|
48
52
|
msgid "Can access this app"
|
49
53
|
msgstr ""
|
@@ -56,52 +60,52 @@ msgstr ""
|
|
56
60
|
msgid "Title"
|
57
61
|
msgstr "Заголовок"
|
58
62
|
|
59
|
-
#: aa_bulletin_board/models.py:
|
63
|
+
#: aa_bulletin_board/models.py:84
|
60
64
|
msgid "Content"
|
61
65
|
msgstr "Вміст"
|
62
66
|
|
63
67
|
#. Translators: This is the date and time the bulletin has been created
|
64
|
-
#: aa_bulletin_board/models.py:
|
68
|
+
#: aa_bulletin_board/models.py:90
|
65
69
|
msgid "Created"
|
66
70
|
msgstr "Створено"
|
67
71
|
|
68
72
|
#. Translators: This is the date and time the bulletin has been updated
|
69
|
-
#: aa_bulletin_board/models.py:
|
73
|
+
#: aa_bulletin_board/models.py:96
|
70
74
|
msgid "Updated"
|
71
75
|
msgstr ""
|
72
76
|
|
73
|
-
#: aa_bulletin_board/models.py:
|
77
|
+
#: aa_bulletin_board/models.py:105
|
74
78
|
msgid "User"
|
75
79
|
msgstr ""
|
76
80
|
|
77
|
-
#: aa_bulletin_board/models.py:
|
81
|
+
#: aa_bulletin_board/models.py:111
|
78
82
|
msgid "Group restrictions"
|
79
83
|
msgstr "Групові обмеження"
|
80
84
|
|
81
|
-
#: aa_bulletin_board/models.py:
|
85
|
+
#: aa_bulletin_board/models.py:122
|
82
86
|
msgid "Bulletin"
|
83
87
|
msgstr "Інформаційний бюлетень"
|
84
88
|
|
85
|
-
#: aa_bulletin_board/models.py:
|
89
|
+
#: aa_bulletin_board/models.py:123
|
86
90
|
msgid "Bulletins"
|
87
91
|
msgstr "Інформаційні бюлетені"
|
88
92
|
|
89
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:
|
93
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:16
|
90
94
|
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:34
|
91
95
|
msgid "Back"
|
92
96
|
msgstr "Повернутися"
|
93
97
|
|
94
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:
|
95
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:
|
98
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:19
|
99
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:36
|
96
100
|
msgid "Edit"
|
97
101
|
msgstr "Редагувати"
|
98
102
|
|
99
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:
|
100
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:
|
103
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:20
|
104
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:37
|
101
105
|
msgid "Delete"
|
102
106
|
msgstr "Видалити"
|
103
107
|
|
104
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:
|
108
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:17
|
105
109
|
#, fuzzy
|
106
110
|
#| msgid "This bulletin is restricted to the following group(s):"
|
107
111
|
msgid "This bulletin is restricted to the following group:"
|
@@ -111,10 +115,16 @@ msgstr[1] "Доступ до цього бюлетеня обмежений дл
|
|
111
115
|
msgstr[2] "Доступ до цього бюлетеня обмежений для наступних груп:"
|
112
116
|
msgstr[3] "Доступ до цього бюлетеня обмежений для наступних груп:"
|
113
117
|
|
114
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:
|
118
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:33
|
115
119
|
msgid "Read more"
|
116
120
|
msgstr "Читати далі"
|
117
121
|
|
122
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:47
|
123
|
+
#, fuzzy
|
124
|
+
#| msgid "Bulletin Board"
|
125
|
+
msgid "No bulletins found."
|
126
|
+
msgstr "Дошка оголошень"
|
127
|
+
|
118
128
|
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:11
|
119
129
|
#, fuzzy
|
120
130
|
#| msgid "Edit Bulletin"
|
@@ -128,19 +138,19 @@ msgstr "Редагувати бюлетень"
|
|
128
138
|
msgid "Create new bulletin"
|
129
139
|
msgstr "Створити новий бюлетень"
|
130
140
|
|
131
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:
|
141
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:45
|
132
142
|
#, fuzzy
|
133
143
|
#| msgid "Update Bulletin"
|
134
144
|
msgid "Update bulletin"
|
135
145
|
msgstr "Бюлетень оновлень"
|
136
146
|
|
137
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:
|
147
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:47
|
138
148
|
#, fuzzy
|
139
149
|
#| msgid "Create Bulletin"
|
140
150
|
msgid "Create bulletin"
|
141
151
|
msgstr "Створити бюлетень"
|
142
152
|
|
143
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/partials/common/bulletin-board-management.html:
|
153
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/partials/common/bulletin-board-management.html:7
|
144
154
|
#, fuzzy
|
145
155
|
#| msgid "Add Bulletin"
|
146
156
|
msgid "Add bulletin"
|
@@ -156,12 +166,12 @@ msgstr ""
|
|
156
166
|
msgid "Join our team of translators!"
|
157
167
|
msgstr ""
|
158
168
|
|
159
|
-
#: aa_bulletin_board/views.py:
|
169
|
+
#: aa_bulletin_board/views.py:98
|
160
170
|
#, python-brace-format
|
161
171
|
msgid "Bulletin \"{bulletin__title}\" created."
|
162
172
|
msgstr "Створено бюлетень «{bulletin__title}»."
|
163
173
|
|
164
|
-
#: aa_bulletin_board/views.py:
|
174
|
+
#: aa_bulletin_board/views.py:141
|
165
175
|
#, fuzzy
|
166
176
|
#| msgid ""
|
167
177
|
#| "The bulletin you are looking for does not exist, or you don't have access "
|
@@ -171,23 +181,23 @@ msgid ""
|
|
171
181
|
"access to it."
|
172
182
|
msgstr "Бюлетень, який ви шукаєте, не існує, або у вас немає до нього доступу."
|
173
183
|
|
174
|
-
#: aa_bulletin_board/views.py:
|
175
|
-
#, python-brace-format
|
176
|
-
msgid "Bulletin \"{bulletin__title}\" updated."
|
177
|
-
msgstr "Оновлено бюлетень «{bulletin__title}»."
|
178
|
-
|
179
|
-
#: aa_bulletin_board/views.py:186
|
184
|
+
#: aa_bulletin_board/views.py:168
|
180
185
|
#, fuzzy
|
181
186
|
#| msgid "The bulletin you are trying to edit for does not exist."
|
182
187
|
msgid "The bulletin you are trying to edit does not exist."
|
183
188
|
msgstr "Бюлетень, який ви намагаєтеся відредагувати, не існує."
|
184
189
|
|
185
|
-
#: aa_bulletin_board/views.py:
|
190
|
+
#: aa_bulletin_board/views.py:195
|
191
|
+
#, python-brace-format
|
192
|
+
msgid "Bulletin \"{bulletin__title}\" updated."
|
193
|
+
msgstr "Оновлено бюлетень «{bulletin__title}»."
|
194
|
+
|
195
|
+
#: aa_bulletin_board/views.py:227
|
186
196
|
#, python-brace-format
|
187
197
|
msgid "Bulletin \"{bulletin.title}\" deleted."
|
188
198
|
msgstr "Бюлетень «{bulletin.title}» вилучено."
|
189
199
|
|
190
|
-
#: aa_bulletin_board/views.py:
|
200
|
+
#: aa_bulletin_board/views.py:234
|
191
201
|
#, fuzzy
|
192
202
|
#| msgid "The bulletin you are trying to delete for does not exist."
|
193
203
|
msgid "The bulletin you are trying to delete does not exist."
|
Binary file
|
@@ -3,13 +3,15 @@
|
|
3
3
|
# This file is distributed under the same license as the PACKAGE package.
|
4
4
|
# Faer Yili <yilifaer@gmail.com>, 2024.
|
5
5
|
# Dehao Wu <wudehao2000@163.com>, 2024.
|
6
|
+
# SAM_FPS <sam_fps@163.com>, 2024.
|
7
|
+
# MxdHana <236833425@qq.com>, 2024.
|
6
8
|
msgid ""
|
7
9
|
msgstr ""
|
8
10
|
"Project-Id-Version: PACKAGE VERSION\n"
|
9
11
|
"Report-Msgid-Bugs-To: \n"
|
10
|
-
"POT-Creation-Date:
|
11
|
-
"PO-Revision-Date: 2024-
|
12
|
-
"Last-Translator:
|
12
|
+
"POT-Creation-Date: 2024-03-15 18:14+0100\n"
|
13
|
+
"PO-Revision-Date: 2024-05-15 09:20+0000\n"
|
14
|
+
"Last-Translator: MxdHana <236833425@qq.com>\n"
|
13
15
|
"Language-Team: Chinese (Simplified) <https://weblate.ppfeufer.de/projects/"
|
14
16
|
"alliance-auth-apps/aa-bulletin-board/zh_Hans/>\n"
|
15
17
|
"Language: zh_Hans\n"
|
@@ -17,114 +19,123 @@ msgstr ""
|
|
17
19
|
"Content-Type: text/plain; charset=UTF-8\n"
|
18
20
|
"Content-Transfer-Encoding: 8bit\n"
|
19
21
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
20
|
-
"X-Generator: Weblate 5.3
|
22
|
+
"X-Generator: Weblate 5.5.3\n"
|
21
23
|
|
22
|
-
#: aa_bulletin_board/__init__.py:
|
23
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/base.html:
|
24
|
+
#: aa_bulletin_board/__init__.py:9 aa_bulletin_board/models.py:67
|
25
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/base.html:6
|
26
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/base.html:10
|
24
27
|
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:5
|
25
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:6
|
26
28
|
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:8
|
27
29
|
msgid "Bulletin Board"
|
28
|
-
msgstr ""
|
30
|
+
msgstr "公告栏"
|
29
31
|
|
30
32
|
#. Translators: This is the app name and version, which will appear in the Django Backend
|
31
33
|
#: aa_bulletin_board/apps.py:21
|
32
34
|
#, python-brace-format
|
33
35
|
msgid "Bulletin Board v{__version__}"
|
34
|
-
msgstr ""
|
36
|
+
msgstr "公告栏v{__version__}"
|
35
37
|
|
36
|
-
#: aa_bulletin_board/forms.py:
|
38
|
+
#: aa_bulletin_board/forms.py:65
|
37
39
|
msgid ""
|
38
40
|
"Restrict this bulletin to certain groups. If no group restrictions are in "
|
39
41
|
"place, everyone who has access to this module can read this bulletin."
|
40
|
-
msgstr ""
|
42
|
+
msgstr "限制此公告为特定组可阅读。如果没有设置组限制,每个访问此模块的人都可以阅读此"
|
43
|
+
"公告。"
|
44
|
+
|
45
|
+
#: aa_bulletin_board/forms.py:112
|
46
|
+
msgid "You have forgotten the content!"
|
47
|
+
msgstr "你忘记了内容!"
|
41
48
|
|
42
49
|
#: aa_bulletin_board/models.py:71
|
43
50
|
msgid "Can access this app"
|
44
|
-
msgstr "
|
51
|
+
msgstr "能够访问此应用程序"
|
45
52
|
|
46
53
|
#: aa_bulletin_board/models.py:72
|
47
54
|
msgid "Can manage (add/change/remove) bulletins"
|
48
|
-
msgstr ""
|
55
|
+
msgstr "可以管理(添加/更改/移除)公告"
|
49
56
|
|
50
57
|
#: aa_bulletin_board/models.py:81
|
51
58
|
msgid "Title"
|
52
59
|
msgstr "头衔"
|
53
60
|
|
54
|
-
#: aa_bulletin_board/models.py:
|
61
|
+
#: aa_bulletin_board/models.py:84
|
55
62
|
msgid "Content"
|
56
|
-
msgstr ""
|
63
|
+
msgstr "目录"
|
57
64
|
|
58
65
|
#. Translators: This is the date and time the bulletin has been created
|
59
|
-
#: aa_bulletin_board/models.py:
|
66
|
+
#: aa_bulletin_board/models.py:90
|
60
67
|
msgid "Created"
|
61
|
-
msgstr ""
|
68
|
+
msgstr "创建"
|
62
69
|
|
63
70
|
#. Translators: This is the date and time the bulletin has been updated
|
64
|
-
#: aa_bulletin_board/models.py:
|
71
|
+
#: aa_bulletin_board/models.py:96
|
65
72
|
msgid "Updated"
|
66
|
-
msgstr ""
|
73
|
+
msgstr "更新"
|
67
74
|
|
68
|
-
#: aa_bulletin_board/models.py:
|
75
|
+
#: aa_bulletin_board/models.py:105
|
69
76
|
msgid "User"
|
70
77
|
msgstr "用户"
|
71
78
|
|
72
|
-
#: aa_bulletin_board/models.py:
|
79
|
+
#: aa_bulletin_board/models.py:111
|
73
80
|
msgid "Group restrictions"
|
74
|
-
msgstr ""
|
81
|
+
msgstr "组别限制"
|
75
82
|
|
76
|
-
#: aa_bulletin_board/models.py:
|
83
|
+
#: aa_bulletin_board/models.py:122
|
77
84
|
msgid "Bulletin"
|
78
|
-
msgstr ""
|
85
|
+
msgstr "公告"
|
79
86
|
|
80
|
-
#: aa_bulletin_board/models.py:
|
87
|
+
#: aa_bulletin_board/models.py:123
|
81
88
|
msgid "Bulletins"
|
82
|
-
msgstr ""
|
89
|
+
msgstr "公告"
|
83
90
|
|
84
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:
|
91
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:16
|
85
92
|
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:34
|
86
93
|
msgid "Back"
|
87
|
-
msgstr ""
|
94
|
+
msgstr "后"
|
88
95
|
|
89
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:
|
90
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:
|
96
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:19
|
97
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:36
|
91
98
|
msgid "Edit"
|
92
|
-
msgstr ""
|
99
|
+
msgstr "编辑"
|
93
100
|
|
94
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:
|
95
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:
|
101
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/bulletin.html:20
|
102
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:37
|
96
103
|
msgid "Delete"
|
97
104
|
msgstr "删除"
|
98
105
|
|
99
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:
|
106
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:17
|
100
107
|
msgid "This bulletin is restricted to the following group:"
|
101
108
|
msgid_plural "This bulletin is restricted to the following groups:"
|
102
|
-
msgstr[0] ""
|
109
|
+
msgstr[0] "此公告限制以下组访问:"
|
103
110
|
|
104
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:
|
111
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:33
|
105
112
|
msgid "Read more"
|
106
|
-
msgstr ""
|
113
|
+
msgstr "阅读更多"
|
114
|
+
|
115
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:47
|
116
|
+
msgid "No bulletins found."
|
117
|
+
msgstr "没有找到公告。"
|
107
118
|
|
108
119
|
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:11
|
109
120
|
msgid "Edit bulletin"
|
110
|
-
msgstr ""
|
121
|
+
msgstr "编辑公告"
|
111
122
|
|
112
123
|
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:14
|
113
124
|
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:25
|
114
125
|
msgid "Create new bulletin"
|
115
|
-
msgstr ""
|
126
|
+
msgstr "创建新的公告"
|
116
127
|
|
117
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:
|
128
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:45
|
118
129
|
msgid "Update bulletin"
|
119
|
-
msgstr ""
|
130
|
+
msgstr "更新公告"
|
120
131
|
|
121
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:
|
132
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:47
|
122
133
|
msgid "Create bulletin"
|
123
|
-
msgstr ""
|
134
|
+
msgstr "创建公告"
|
124
135
|
|
125
|
-
#: aa_bulletin_board/templates/aa_bulletin_board/partials/common/bulletin-board-management.html:
|
136
|
+
#: aa_bulletin_board/templates/aa_bulletin_board/partials/common/bulletin-board-management.html:7
|
126
137
|
msgid "Add bulletin"
|
127
|
-
msgstr ""
|
138
|
+
msgstr "添加公告"
|
128
139
|
|
129
140
|
#: aa_bulletin_board/templates/aa_bulletin_board/partials/footer/app-translation-footer.html:5
|
130
141
|
msgid ""
|
@@ -136,31 +147,31 @@ msgstr "您想帮助将此应用程序翻译成您的母语或改进现有的翻
|
|
136
147
|
msgid "Join our team of translators!"
|
137
148
|
msgstr "加入我们的翻译团队吧!"
|
138
149
|
|
139
|
-
#: aa_bulletin_board/views.py:
|
150
|
+
#: aa_bulletin_board/views.py:98
|
140
151
|
#, python-brace-format
|
141
152
|
msgid "Bulletin \"{bulletin__title}\" created."
|
142
|
-
msgstr ""
|
153
|
+
msgstr "公告“{bulletin__title}”已创建。"
|
143
154
|
|
144
|
-
#: aa_bulletin_board/views.py:
|
155
|
+
#: aa_bulletin_board/views.py:141
|
145
156
|
msgid ""
|
146
157
|
"The bulletin you are looking for does either not exist, or you don't have "
|
147
158
|
"access to it."
|
148
|
-
msgstr ""
|
159
|
+
msgstr "您正在查看的公告不存在,或您没有权限访问。"
|
149
160
|
|
150
|
-
#: aa_bulletin_board/views.py:
|
161
|
+
#: aa_bulletin_board/views.py:168
|
162
|
+
msgid "The bulletin you are trying to edit does not exist."
|
163
|
+
msgstr "您尝试编辑的公告不存在。"
|
164
|
+
|
165
|
+
#: aa_bulletin_board/views.py:195
|
151
166
|
#, python-brace-format
|
152
167
|
msgid "Bulletin \"{bulletin__title}\" updated."
|
153
|
-
msgstr ""
|
154
|
-
|
155
|
-
#: aa_bulletin_board/views.py:186
|
156
|
-
msgid "The bulletin you are trying to edit does not exist."
|
157
|
-
msgstr ""
|
168
|
+
msgstr "公告“{bulletin__title}”已更新。"
|
158
169
|
|
159
|
-
#: aa_bulletin_board/views.py:
|
170
|
+
#: aa_bulletin_board/views.py:227
|
160
171
|
#, python-brace-format
|
161
172
|
msgid "Bulletin \"{bulletin.title}\" deleted."
|
162
|
-
msgstr ""
|
173
|
+
msgstr "公告“{bulletin.title}”已删除。"
|
163
174
|
|
164
|
-
#: aa_bulletin_board/views.py:
|
175
|
+
#: aa_bulletin_board/views.py:234
|
165
176
|
msgid "The bulletin you are trying to delete does not exist."
|
166
|
-
msgstr ""
|
177
|
+
msgstr "您要删除的公告不存在。"
|
@@ -19,7 +19,6 @@
|
|
19
19
|
|
20
20
|
.aa-bulletin-board .card-bulletin-excerpt .card-body {
|
21
21
|
height: 200px;
|
22
|
-
-webkit-mask-image: linear-gradient(rgb(0 0 0), transparent);
|
23
22
|
mask-image: linear-gradient(rgb(0 0 0), transparent);
|
24
23
|
overflow: hidden;
|
25
24
|
padding: 1rem;
|
@@ -34,7 +33,7 @@
|
|
34
33
|
}
|
35
34
|
|
36
35
|
.aa-bulletin-board img {
|
37
|
-
height: auto !important; /* to override inline style added by
|
36
|
+
height: auto !important; /* to override inline style added by CKEditor */
|
38
37
|
max-width: 100%;
|
39
38
|
}
|
40
39
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
@media all{.aa-bulletin-board-header-addition{display:block}.aa-bulletin-board .cards-equal-height{display:flex;flex-wrap:wrap}.aa-bulletin-board .cards-equal-height .card{width:100%}.aa-bulletin-board .cards-equal-height .card-bulletin-excerpt{margin-bottom:.5rem;width:100%}.aa-bulletin-board .card-bulletin-excerpt .card-body{height:200px
|
1
|
+
@media all{.aa-bulletin-board-header-addition{display:block}.aa-bulletin-board .cards-equal-height{display:flex;flex-wrap:wrap}.aa-bulletin-board .cards-equal-height .card{width:100%}.aa-bulletin-board .cards-equal-height .card-bulletin-excerpt{margin-bottom:.5rem;width:100%}.aa-bulletin-board .card-bulletin-excerpt .card-body{height:200px;mask-image:linear-gradient(rgb(0 0 0),transparent);overflow:hidden;padding:1rem}.aa-bulletin-board .card-bulletin-excerpt .card-footer-read-more-button{padding:.625rem 1rem}.aa-bulletin-board .django-ckeditor-widget{display:initial!important}.aa-bulletin-board img{height:auto!important;max-width:100%}.aa-bulletin-board .SumoSelect p{border-radius:var(--bs-border-radius);height:auto}.aa-bulletin-board .SumoSelect{color:rgb(54 54 54);display:inherit}.aa-bulletin-board .SumoSelect>.CaptionCont>label>i{background-image:none}.aa-bulletin-board .SumoSelect>.CaptionCont>span.placeholder{background-color:transparent;color:rgb(62 68 76);opacity:1}}@media all and (min-width:768px){.aa-bulletin-board .cards-equal-height .card-bulletin-excerpt{width:calc(100%/2)}}@media all and (min-width:1200px){.aa-bulletin-board .cards-equal-height .card-bulletin-excerpt{width:calc(100%/3)}}@media all{.aa-bulletin-board figure.media .oembed-video{height:auto;max-width:100%;overflow:hidden;padding-bottom:56.25%;position:relative}.aa-bulletin-board figure.media .oembed-video>iframe{height:100%;left:0;max-height:100vh;position:absolute;top:0;width:100%}.aa-bulletin-board .ck-rounded-corners{--ck-border-radius:var(--bs-border-radius)}.aa-bulletin-board .ck-editor__editable{color:initial}.aa-bulletin-board .ck-word-count{color:var(--bs-secondary-color)!important;--bs-text-opacity:1}}
|
2
2
|
/*# sourceMappingURL=aa-bulletin-board.min.css.map */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["aa-bulletin-board.css"],"names":[],"mappings":"AAAA,A,WACI,kC,CACI,a,CAGJ,sC,CACI,Y,CACA,c,CAGJ,4C,CACI,U,CAGJ,6D,CACI,mB,CACA,U,CAGJ,oD,CACI,Y,CACA,
|
1
|
+
{"version":3,"sources":["aa-bulletin-board.css"],"names":[],"mappings":"AAAA,A,WACI,kC,CACI,a,CAGJ,sC,CACI,Y,CACA,c,CAGJ,4C,CACI,U,CAGJ,6D,CACI,mB,CACA,U,CAGJ,oD,CACI,Y,CACA,kD,CACA,e,CACA,Y,CAGJ,uE,CACI,oB,CAGJ,0C,CACI,yB,CAGJ,sB,CACI,qB,CACA,c,CAOJ,gC,CACI,qC,CACA,W,CAGJ,8B,CACI,mB,CACA,e,CAGJ,mD,CACI,qB,CAGJ,4D,CACI,4B,CACA,mB,CACA,WAIR,A,iCACI,6D,CACI,oBAIR,A,kCACI,6D,CACI,oBAMR,A,WACI,6C,CACI,W,CACA,c,CACA,e,CACA,qB,CACA,iB,CAGJ,oD,CACI,W,CACA,M,CACA,gB,CACA,iB,CACA,K,CACA,U,CAOJ,sC,CACI,0C,CAGJ,uC,CACI,a,CAGJ,iC,CACI,yC,CAEA,qB","file":"aa-bulletin-board.css","sourcesContent":["@media all {\n .aa-bulletin-board-header-addition {\n display: block;\n }\n\n .aa-bulletin-board .cards-equal-height {\n display: flex;\n flex-wrap: wrap;\n }\n\n .aa-bulletin-board .cards-equal-height .card {\n width: 100%;\n }\n\n .aa-bulletin-board .cards-equal-height .card-bulletin-excerpt {\n margin-bottom: 0.5rem;\n width: 100%;\n }\n\n .aa-bulletin-board .card-bulletin-excerpt .card-body {\n height: 200px;\n mask-image: linear-gradient(rgb(0 0 0), transparent);\n overflow: hidden;\n padding: 1rem;\n }\n\n .aa-bulletin-board .card-bulletin-excerpt .card-footer-read-more-button {\n padding: 0.625rem 1rem;\n }\n\n .aa-bulletin-board .django-ckeditor-widget {\n display: initial !important;\n }\n\n .aa-bulletin-board img {\n height: auto !important; /* to override inline style added by CKEditor */\n max-width: 100%;\n }\n}\n\n/* SumoSelect\n------------------------------------------------------------------------------------- */\n@media all {\n .aa-bulletin-board .SumoSelect p {\n border-radius: var(--bs-border-radius);\n height: auto;\n }\n\n .aa-bulletin-board .SumoSelect {\n color: rgb(54 54 54);\n display: inherit;\n }\n\n .aa-bulletin-board .SumoSelect > .CaptionCont > label > i {\n background-image: none;\n }\n\n .aa-bulletin-board .SumoSelect > .CaptionCont > span.placeholder {\n background-color: transparent;\n color: rgb(62 68 76);\n opacity: 1;\n }\n}\n\n@media all and (min-width: 768px) {\n .aa-bulletin-board .cards-equal-height .card-bulletin-excerpt {\n width: calc(100% / 2);\n }\n}\n\n@media all and (min-width: 1200px) {\n .aa-bulletin-board .cards-equal-height .card-bulletin-excerpt {\n width: calc(100% / 3);\n }\n}\n\n/* Fix for oEmbed videos\n------------------------------------------------------------------------------------- */\n@media all {\n .aa-bulletin-board figure.media .oembed-video {\n height: auto;\n max-width: 100%;\n overflow: hidden;\n padding-bottom: 56.25%;\n position: relative;\n }\n\n .aa-bulletin-board figure.media .oembed-video > iframe {\n height: 100%;\n left: 0;\n max-height: 100vh;\n position: absolute;\n top: 0;\n width: 100%;\n }\n}\n\n/* CKEditor 5 (WYSIWYG editor)\n------------------------------------------------------------------------------------- */\n@media all {\n .aa-bulletin-board .ck-rounded-corners {\n --ck-border-radius: var(--bs-border-radius);\n }\n\n .aa-bulletin-board .ck-editor__editable {\n color: initial;\n }\n\n .aa-bulletin-board .ck-word-count {\n color: var(--bs-secondary-color) !important;\n\n --bs-text-opacity: 1;\n }\n}\n"]}
|
@@ -1,47 +1,45 @@
|
|
1
|
-
|
2
|
-
* Replace oembed YouTube video with an iframe
|
3
|
-
*
|
4
|
-
* CKEditor5 oembed plugin is used to embed YouTube videos, and browsers cannot render the oembed element.
|
5
|
-
* This function replaces the oembed element with an iframe and is using the YouTube-nocookie domain.
|
6
|
-
*
|
7
|
-
* @param {string} url The YouTube video URL
|
8
|
-
* @returns {`<div class="oembed-video youtube-oembed-video"><iframe src="https://www.youtube-nocookie.com/embed/${string}" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`}
|
9
|
-
*/
|
10
|
-
const youtubeOembedToIframe = (url) => {
|
1
|
+
$(document).ready(() => {
|
11
2
|
'use strict';
|
12
3
|
|
13
|
-
|
14
|
-
|
4
|
+
/**
|
5
|
+
* Replace oembed YouTube video with an iframe
|
6
|
+
*
|
7
|
+
* CKEditor5 oembed plugin is used to embed YouTube videos, and browsers cannot render the oembed element.
|
8
|
+
* This function replaces the oembed element with an iframe and is using the YouTube-nocookie domain.
|
9
|
+
*
|
10
|
+
* @param {string} url The YouTube video URL
|
11
|
+
* @returns {`<div class="oembed-video youtube-oembed-video"><iframe src="${string}" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`}
|
12
|
+
*/
|
13
|
+
const youtubeOembedToIframe = (url) => {
|
14
|
+
let videoId = url.split('v=')[1];
|
15
|
+
const ampersandPosition = videoId.indexOf('&');
|
16
|
+
const embedUrl = 'https://www.youtube-nocookie.com/embed/';
|
17
|
+
|
18
|
+
if (ampersandPosition !== -1) {
|
19
|
+
videoId = videoId.substring(0, ampersandPosition);
|
20
|
+
}
|
15
21
|
|
16
|
-
|
17
|
-
videoId = videoId.substring(0, ampersandPosition);
|
18
|
-
}
|
22
|
+
const videoUrl = embedUrl + videoId;
|
19
23
|
|
20
|
-
|
21
|
-
};
|
24
|
+
return `<div class="oembed-video youtube-oembed-video"><iframe src="${videoUrl}" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`;
|
25
|
+
};
|
22
26
|
|
23
27
|
|
24
|
-
/**
|
25
|
-
|
26
|
-
|
27
|
-
const checkForOembed = () => {
|
28
|
-
|
28
|
+
/**
|
29
|
+
* Look for oembed elements and replace them with iframes
|
30
|
+
*/
|
31
|
+
const checkForOembed = () => {
|
32
|
+
// Find all oembed elements and loop through them
|
33
|
+
$('.ck-content figure.media oembed').each((index, element) => {
|
34
|
+
const source = $(element).attr('url');
|
29
35
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
$(element).replaceWith(youtubeOembedToIframe(source));
|
38
|
-
}
|
39
|
-
});
|
40
|
-
};
|
41
|
-
|
42
|
-
|
43
|
-
$(document).ready(() => {
|
44
|
-
'use strict';
|
36
|
+
// Check if the source is a YouTube video
|
37
|
+
if (source.includes('youtube.com/watch')) {
|
38
|
+
// Replace the oembed element with an iframe
|
39
|
+
$(element).replaceWith(youtubeOembedToIframe(source));
|
40
|
+
}
|
41
|
+
});
|
42
|
+
};
|
45
43
|
|
46
44
|
// Run the checkForOembed function when the document is ready
|
47
45
|
checkForOembed();
|
@@ -1,2 +1,2 @@
|
|
1
|
-
|
1
|
+
$(document).ready(()=>{"use strict";const c=e=>{let t=e.split("v=")[1];const o=t.indexOf("&"),c="https://www.youtube-nocookie.com/embed/",i=(-1!==o&&(t=t.substring(0,o)),c+t);return`<div class="oembed-video youtube-oembed-video"><iframe src="${i}" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>`},e=()=>{$(".ck-content figure.media oembed").each((e,t)=>{const o=$(t).attr("url");o.includes("youtube.com/watch")&&$(t).replaceWith(c(o))})};e()});
|
2
2
|
//# sourceMappingURL=aa-bulletin-board-oembed.min.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["aa-bulletin-board-oembed.js"],"names":["youtubeOembedToIframe","let","videoId","url","split","ampersandPosition","indexOf","
|
1
|
+
{"version":3,"sources":["aa-bulletin-board-oembed.js"],"names":["$","document","ready","youtubeOembedToIframe","let","videoId","url","split","ampersandPosition","indexOf","embedUrl","videoUrl","substring","checkForOembed","each","index","element","source","attr","includes","replaceWith"],"mappings":"AAAAA,EAAEC,QAAQ,EAAEC,MAAM,KACd,aAWA,MAAMC,EAAwB,IAC1BC,IAAIC,EAAUC,EAAIC,MAAM,IAAI,EAAE,GAC9B,MAAMC,EAAoBH,EAAQI,QAAQ,GAAG,EACvCC,EAAW,0CAMXC,GAJoB,CAAC,IAAvBH,IACAH,EAAUA,EAAQO,UAAU,EAAGJ,CAAiB,GAGnCE,EAAWL,GAE5B,qEAAsEM,oHAC1E,EAMME,EAAiB,KAEnBb,EAAE,iCAAiC,EAAEc,KAAK,CAACC,EAAOC,KAC9C,MAAMC,EAASjB,EAAEgB,CAAO,EAAEE,KAAK,KAAK,EAGhCD,EAAOE,SAAS,mBAAmB,GAEnCnB,EAAEgB,CAAO,EAAEI,YAAYjB,EAAsBc,CAAM,CAAC,CAE5D,CAAC,CACL,EAGAJ,EAAe,CACnB,CAAC"}
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<span>{{ bulletin.title }}</span>
|
14
14
|
{% if bulletin.groups.all %}
|
15
15
|
<i
|
16
|
-
class="
|
16
|
+
class="fa-regular fa-eye-slash aa-bulletin-board-marker-group-restrictions float-end"
|
17
17
|
title="{% blocktranslate count group_count=bulletin.groups.all|length %}This bulletin is restricted to the following group:{% plural %}This bulletin is restricted to the following groups:{% endblocktranslate %}<br>{{ bulletin.groups.all|join:', ' }}"
|
18
18
|
data-bs-toggle="tooltip"
|
19
19
|
data-bs-html="true"
|
@@ -43,7 +43,7 @@ class TestHooks(TestCase):
|
|
43
43
|
|
44
44
|
cls.html_menu = f"""
|
45
45
|
<li class="d-flex flex-wrap m-2 p-2 pt-0 pb-0 mt-0 mb-0 me-0 pe-0">
|
46
|
-
<i class="nav-link
|
46
|
+
<i class="nav-link fa-solid fa-clipboard-list fa-fw align-self-center me-3 "></i>
|
47
47
|
<a class="nav-link flex-fill align-self-center me-auto" href="{reverse(viewname='aa_bulletin_board:dashboard')}">
|
48
48
|
Bulletin Board
|
49
49
|
</a>
|