aa-bulletin-board 2.3.2__py3-none-any.whl → 2.3.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 (32) hide show
  1. aa_bulletin_board/__init__.py +1 -1
  2. aa_bulletin_board/auth_hooks.py +5 -4
  3. aa_bulletin_board/forms.py +8 -3
  4. aa_bulletin_board/helper/static_files.py +3 -5
  5. aa_bulletin_board/helper/string.py +22 -0
  6. aa_bulletin_board/locale/cs_CZ/LC_MESSAGES/django.po +12 -12
  7. aa_bulletin_board/locale/de/LC_MESSAGES/django.po +12 -12
  8. aa_bulletin_board/locale/django.pot +13 -13
  9. aa_bulletin_board/locale/es/LC_MESSAGES/django.po +12 -12
  10. aa_bulletin_board/locale/fr_FR/LC_MESSAGES/django.po +12 -12
  11. aa_bulletin_board/locale/it_IT/LC_MESSAGES/django.po +12 -12
  12. aa_bulletin_board/locale/ja/LC_MESSAGES/django.po +12 -12
  13. aa_bulletin_board/locale/ko_KR/LC_MESSAGES/django.po +12 -12
  14. aa_bulletin_board/locale/nl_NL/LC_MESSAGES/django.po +12 -12
  15. aa_bulletin_board/locale/pl_PL/LC_MESSAGES/django.po +12 -12
  16. aa_bulletin_board/locale/ru/LC_MESSAGES/django.po +12 -12
  17. aa_bulletin_board/locale/sk/LC_MESSAGES/django.po +12 -12
  18. aa_bulletin_board/locale/uk/LC_MESSAGES/django.mo +0 -0
  19. aa_bulletin_board/locale/uk/LC_MESSAGES/django.po +21 -41
  20. aa_bulletin_board/locale/zh_Hans/LC_MESSAGES/django.po +12 -12
  21. aa_bulletin_board/models.py +7 -11
  22. aa_bulletin_board/templates/aa_bulletin_board/bulletin.html +1 -1
  23. aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html +2 -2
  24. aa_bulletin_board/tests/test_bulletins.py +1 -1
  25. aa_bulletin_board/tests/test_forms.py +181 -0
  26. aa_bulletin_board/tests/test_user_interface.py +1 -1
  27. {aa_bulletin_board-2.3.2.dist-info → aa_bulletin_board-2.3.3.dist-info}/METADATA +1 -1
  28. {aa_bulletin_board-2.3.2.dist-info → aa_bulletin_board-2.3.3.dist-info}/RECORD +30 -30
  29. aa_bulletin_board/helpers.py +0 -34
  30. aa_bulletin_board/templates/aa_bulletin_board/partials/header/page-header.html +0 -9
  31. {aa_bulletin_board-2.3.2.dist-info → aa_bulletin_board-2.3.3.dist-info}/WHEEL +0 -0
  32. {aa_bulletin_board-2.3.2.dist-info → aa_bulletin_board-2.3.3.dist-info}/licenses/LICENSE +0 -0
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
10
- "POT-Creation-Date: 2025-03-06 15:55+0100\n"
10
+ "POT-Creation-Date: 2025-03-24 13:07+0100\n"
11
11
  "PO-Revision-Date: 2024-05-10 13:57+0000\n"
12
12
  "Last-Translator: Anonymous <noreply@weblate.org>\n"
13
13
  "Language-Team: Dutch <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/nl/>\n"
@@ -36,49 +36,49 @@ msgstr ""
36
36
  msgid "Restrict this bulletin to certain groups. If no group restrictions are in place, everyone who has access to this module can read this bulletin."
37
37
  msgstr ""
38
38
 
39
- #: aa_bulletin_board/forms.py:110
39
+ #: aa_bulletin_board/forms.py:112
40
40
  msgid "You have forgotten the content!"
41
41
  msgstr ""
42
42
 
43
- #: aa_bulletin_board/models.py:72
43
+ #: aa_bulletin_board/models.py:69
44
44
  msgid "Can access this app"
45
45
  msgstr ""
46
46
 
47
- #: aa_bulletin_board/models.py:73
47
+ #: aa_bulletin_board/models.py:70
48
48
  msgid "Can manage (add/change/remove) bulletins"
49
49
  msgstr ""
50
50
 
51
- #: aa_bulletin_board/models.py:82
51
+ #: aa_bulletin_board/models.py:79
52
52
  msgid "Title"
53
53
  msgstr ""
54
54
 
55
- #: aa_bulletin_board/models.py:85
55
+ #: aa_bulletin_board/models.py:82
56
56
  msgid "Content"
57
57
  msgstr ""
58
58
 
59
59
  #. Translators: This is the date and time the bulletin has been created
60
- #: aa_bulletin_board/models.py:91
60
+ #: aa_bulletin_board/models.py:88
61
61
  msgid "Created"
62
62
  msgstr ""
63
63
 
64
64
  #. Translators: This is the date and time the bulletin has been updated
65
- #: aa_bulletin_board/models.py:97
65
+ #: aa_bulletin_board/models.py:94
66
66
  msgid "Updated"
67
67
  msgstr ""
68
68
 
69
- #: aa_bulletin_board/models.py:106
69
+ #: aa_bulletin_board/models.py:103
70
70
  msgid "User"
71
71
  msgstr ""
72
72
 
73
- #: aa_bulletin_board/models.py:112
73
+ #: aa_bulletin_board/models.py:109
74
74
  msgid "Group restrictions"
75
75
  msgstr ""
76
76
 
77
- #: aa_bulletin_board/models.py:123
77
+ #: aa_bulletin_board/models.py:120
78
78
  msgid "Bulletin"
79
79
  msgstr ""
80
80
 
81
- #: aa_bulletin_board/models.py:124
81
+ #: aa_bulletin_board/models.py:121
82
82
  msgid "Bulletins"
83
83
  msgstr ""
84
84
 
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
8
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
9
- "POT-Creation-Date: 2025-03-06 15:55+0100\n"
9
+ "POT-Creation-Date: 2025-03-24 13:07+0100\n"
10
10
  "PO-Revision-Date: 2024-05-10 13:57+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: Polish <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/pl/>\n"
@@ -35,49 +35,49 @@ msgstr ""
35
35
  msgid "Restrict this bulletin to certain groups. If no group restrictions are in place, everyone who has access to this module can read this bulletin."
36
36
  msgstr ""
37
37
 
38
- #: aa_bulletin_board/forms.py:110
38
+ #: aa_bulletin_board/forms.py:112
39
39
  msgid "You have forgotten the content!"
40
40
  msgstr ""
41
41
 
42
- #: aa_bulletin_board/models.py:72
42
+ #: aa_bulletin_board/models.py:69
43
43
  msgid "Can access this app"
44
44
  msgstr ""
45
45
 
46
- #: aa_bulletin_board/models.py:73
46
+ #: aa_bulletin_board/models.py:70
47
47
  msgid "Can manage (add/change/remove) bulletins"
48
48
  msgstr ""
49
49
 
50
- #: aa_bulletin_board/models.py:82
50
+ #: aa_bulletin_board/models.py:79
51
51
  msgid "Title"
52
52
  msgstr ""
53
53
 
54
- #: aa_bulletin_board/models.py:85
54
+ #: aa_bulletin_board/models.py:82
55
55
  msgid "Content"
56
56
  msgstr ""
57
57
 
58
58
  #. Translators: This is the date and time the bulletin has been created
59
- #: aa_bulletin_board/models.py:91
59
+ #: aa_bulletin_board/models.py:88
60
60
  msgid "Created"
61
61
  msgstr ""
62
62
 
63
63
  #. Translators: This is the date and time the bulletin has been updated
64
- #: aa_bulletin_board/models.py:97
64
+ #: aa_bulletin_board/models.py:94
65
65
  msgid "Updated"
66
66
  msgstr ""
67
67
 
68
- #: aa_bulletin_board/models.py:106
68
+ #: aa_bulletin_board/models.py:103
69
69
  msgid "User"
70
70
  msgstr ""
71
71
 
72
- #: aa_bulletin_board/models.py:112
72
+ #: aa_bulletin_board/models.py:109
73
73
  msgid "Group restrictions"
74
74
  msgstr ""
75
75
 
76
- #: aa_bulletin_board/models.py:123
76
+ #: aa_bulletin_board/models.py:120
77
77
  msgid "Bulletin"
78
78
  msgstr ""
79
79
 
80
- #: aa_bulletin_board/models.py:124
80
+ #: aa_bulletin_board/models.py:121
81
81
  msgid "Bulletins"
82
82
  msgstr ""
83
83
 
@@ -9,7 +9,7 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: PACKAGE VERSION\n"
11
11
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
12
- "POT-Creation-Date: 2025-03-06 15:55+0100\n"
12
+ "POT-Creation-Date: 2025-03-24 13:07+0100\n"
13
13
  "PO-Revision-Date: 2024-06-07 13:27+0000\n"
14
14
  "Last-Translator: Roycce_ <malyasov.roma@mail.ru>\n"
15
15
  "Language-Team: Russian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/ru/>\n"
@@ -38,49 +38,49 @@ msgstr "Доска бюллетеней"
38
38
  msgid "Restrict this bulletin to certain groups. If no group restrictions are in place, everyone who has access to this module can read this bulletin."
39
39
  msgstr "Ограничить доступ к бюллетеню для конкретных групп. Если ограничение не задано, у всех пользователей модуля есть доступ к бюллетеню."
40
40
 
41
- #: aa_bulletin_board/forms.py:110
41
+ #: aa_bulletin_board/forms.py:112
42
42
  msgid "You have forgotten the content!"
43
43
  msgstr "Вы забыли содержание!"
44
44
 
45
- #: aa_bulletin_board/models.py:72
45
+ #: aa_bulletin_board/models.py:69
46
46
  msgid "Can access this app"
47
47
  msgstr "Имеет доступ к приложению"
48
48
 
49
- #: aa_bulletin_board/models.py:73
49
+ #: aa_bulletin_board/models.py:70
50
50
  msgid "Can manage (add/change/remove) bulletins"
51
51
  msgstr "Может управлять (добавлять/изменять/удалять) бюллетенями"
52
52
 
53
- #: aa_bulletin_board/models.py:82
53
+ #: aa_bulletin_board/models.py:79
54
54
  msgid "Title"
55
55
  msgstr "Заглавие"
56
56
 
57
- #: aa_bulletin_board/models.py:85
57
+ #: aa_bulletin_board/models.py:82
58
58
  msgid "Content"
59
59
  msgstr "Содержимое"
60
60
 
61
61
  #. Translators: This is the date and time the bulletin has been created
62
- #: aa_bulletin_board/models.py:91
62
+ #: aa_bulletin_board/models.py:88
63
63
  msgid "Created"
64
64
  msgstr "Создан"
65
65
 
66
66
  #. Translators: This is the date and time the bulletin has been updated
67
- #: aa_bulletin_board/models.py:97
67
+ #: aa_bulletin_board/models.py:94
68
68
  msgid "Updated"
69
69
  msgstr "Обновлен"
70
70
 
71
- #: aa_bulletin_board/models.py:106
71
+ #: aa_bulletin_board/models.py:103
72
72
  msgid "User"
73
73
  msgstr "Пользователь"
74
74
 
75
- #: aa_bulletin_board/models.py:112
75
+ #: aa_bulletin_board/models.py:109
76
76
  msgid "Group restrictions"
77
77
  msgstr "Ограничения групп"
78
78
 
79
- #: aa_bulletin_board/models.py:123
79
+ #: aa_bulletin_board/models.py:120
80
80
  msgid "Bulletin"
81
81
  msgstr "Бюллетень"
82
82
 
83
- #: aa_bulletin_board/models.py:124
83
+ #: aa_bulletin_board/models.py:121
84
84
  msgid "Bulletins"
85
85
  msgstr "Бюллетени"
86
86
 
@@ -7,7 +7,7 @@ msgid ""
7
7
  msgstr ""
8
8
  "Project-Id-Version: PACKAGE VERSION\n"
9
9
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
10
- "POT-Creation-Date: 2025-03-06 15:55+0100\n"
10
+ "POT-Creation-Date: 2025-03-24 13:07+0100\n"
11
11
  "PO-Revision-Date: 2024-05-10 13:57+0000\n"
12
12
  "Last-Translator: Anonymous <noreply@weblate.org>\n"
13
13
  "Language-Team: Slovak <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/sk/>\n"
@@ -36,49 +36,49 @@ msgstr ""
36
36
  msgid "Restrict this bulletin to certain groups. If no group restrictions are in place, everyone who has access to this module can read this bulletin."
37
37
  msgstr ""
38
38
 
39
- #: aa_bulletin_board/forms.py:110
39
+ #: aa_bulletin_board/forms.py:112
40
40
  msgid "You have forgotten the content!"
41
41
  msgstr ""
42
42
 
43
- #: aa_bulletin_board/models.py:72
43
+ #: aa_bulletin_board/models.py:69
44
44
  msgid "Can access this app"
45
45
  msgstr ""
46
46
 
47
- #: aa_bulletin_board/models.py:73
47
+ #: aa_bulletin_board/models.py:70
48
48
  msgid "Can manage (add/change/remove) bulletins"
49
49
  msgstr ""
50
50
 
51
- #: aa_bulletin_board/models.py:82
51
+ #: aa_bulletin_board/models.py:79
52
52
  msgid "Title"
53
53
  msgstr ""
54
54
 
55
- #: aa_bulletin_board/models.py:85
55
+ #: aa_bulletin_board/models.py:82
56
56
  msgid "Content"
57
57
  msgstr ""
58
58
 
59
59
  #. Translators: This is the date and time the bulletin has been created
60
- #: aa_bulletin_board/models.py:91
60
+ #: aa_bulletin_board/models.py:88
61
61
  msgid "Created"
62
62
  msgstr ""
63
63
 
64
64
  #. Translators: This is the date and time the bulletin has been updated
65
- #: aa_bulletin_board/models.py:97
65
+ #: aa_bulletin_board/models.py:94
66
66
  msgid "Updated"
67
67
  msgstr ""
68
68
 
69
- #: aa_bulletin_board/models.py:106
69
+ #: aa_bulletin_board/models.py:103
70
70
  msgid "User"
71
71
  msgstr ""
72
72
 
73
- #: aa_bulletin_board/models.py:112
73
+ #: aa_bulletin_board/models.py:109
74
74
  msgid "Group restrictions"
75
75
  msgstr ""
76
76
 
77
- #: aa_bulletin_board/models.py:123
77
+ #: aa_bulletin_board/models.py:120
78
78
  msgid "Bulletin"
79
79
  msgstr ""
80
80
 
81
- #: aa_bulletin_board/models.py:124
81
+ #: aa_bulletin_board/models.py:121
82
82
  msgid "Bulletins"
83
83
  msgstr ""
84
84
 
@@ -9,8 +9,8 @@ msgid ""
9
9
  msgstr ""
10
10
  "Project-Id-Version: PACKAGE VERSION\n"
11
11
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
12
- "POT-Creation-Date: 2025-03-06 15:55+0100\n"
13
- "PO-Revision-Date: 2025-02-23 23:17+0000\n"
12
+ "POT-Creation-Date: 2025-03-24 13:07+0100\n"
13
+ "PO-Revision-Date: 2025-03-23 13:24+0000\n"
14
14
  "Last-Translator: M <skrypets@gmail.com>\n"
15
15
  "Language-Team: Ukrainian <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/uk/>\n"
16
16
  "Language: uk\n"
@@ -18,7 +18,7 @@ msgstr ""
18
18
  "Content-Type: text/plain; charset=UTF-8\n"
19
19
  "Content-Transfer-Encoding: 8bit\n"
20
20
  "Plural-Forms: nplurals=4; plural=n==1 ? 3 : (n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
21
- "X-Generator: Weblate 5.10.1\n"
21
+ "X-Generator: Weblate 5.10.4\n"
22
22
 
23
23
  #. Translators: This is the app name and version, which will appear in the Django Backend
24
24
  #: aa_bulletin_board/apps.py:22
@@ -38,49 +38,49 @@ msgstr "Дошка оголошень"
38
38
  msgid "Restrict this bulletin to certain groups. If no group restrictions are in place, everyone who has access to this module can read this bulletin."
39
39
  msgstr "Обмежте доступ до цього бюлетеня для певних груп. Якщо не встановлено жодних групових обмежень, кожен, хто має доступ до цього модуля, зможе прочитати цей бюлетень."
40
40
 
41
- #: aa_bulletin_board/forms.py:110
41
+ #: aa_bulletin_board/forms.py:112
42
42
  msgid "You have forgotten the content!"
43
- msgstr ""
43
+ msgstr "Вміст відсутній!"
44
44
 
45
- #: aa_bulletin_board/models.py:72
45
+ #: aa_bulletin_board/models.py:69
46
46
  msgid "Can access this app"
47
47
  msgstr "Має доступ до цього додатку"
48
48
 
49
- #: aa_bulletin_board/models.py:73
49
+ #: aa_bulletin_board/models.py:70
50
50
  msgid "Can manage (add/change/remove) bulletins"
51
- msgstr ""
51
+ msgstr "Може кеурувати (створювати/змінювати/видаляти) бюлетені"
52
52
 
53
- #: aa_bulletin_board/models.py:82
53
+ #: aa_bulletin_board/models.py:79
54
54
  msgid "Title"
55
55
  msgstr "Заголовок"
56
56
 
57
- #: aa_bulletin_board/models.py:85
57
+ #: aa_bulletin_board/models.py:82
58
58
  msgid "Content"
59
59
  msgstr "Вміст"
60
60
 
61
61
  #. Translators: This is the date and time the bulletin has been created
62
- #: aa_bulletin_board/models.py:91
62
+ #: aa_bulletin_board/models.py:88
63
63
  msgid "Created"
64
64
  msgstr "Створено"
65
65
 
66
66
  #. Translators: This is the date and time the bulletin has been updated
67
- #: aa_bulletin_board/models.py:97
67
+ #: aa_bulletin_board/models.py:94
68
68
  msgid "Updated"
69
- msgstr ""
69
+ msgstr "Оновлено"
70
70
 
71
- #: aa_bulletin_board/models.py:106
71
+ #: aa_bulletin_board/models.py:103
72
72
  msgid "User"
73
73
  msgstr "Користувач"
74
74
 
75
- #: aa_bulletin_board/models.py:112
75
+ #: aa_bulletin_board/models.py:109
76
76
  msgid "Group restrictions"
77
77
  msgstr "Обмеження групи"
78
78
 
79
- #: aa_bulletin_board/models.py:123
79
+ #: aa_bulletin_board/models.py:120
80
80
  msgid "Bulletin"
81
81
  msgstr "Інформаційний бюлетень"
82
82
 
83
- #: aa_bulletin_board/models.py:124
83
+ #: aa_bulletin_board/models.py:121
84
84
  msgid "Bulletins"
85
85
  msgstr "Інформаційні бюлетені"
86
86
 
@@ -100,53 +100,39 @@ msgid "Delete"
100
100
  msgstr "Видалити"
101
101
 
102
102
  #: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:17
103
- #, fuzzy
104
- #| msgid "This bulletin is restricted to the following group(s):"
105
103
  msgid "This bulletin is restricted to the following group:"
106
104
  msgid_plural "This bulletin is restricted to the following groups:"
107
105
  msgstr[0] "Доступ до цього бюлетеня обмежений для наступних груп:"
108
106
  msgstr[1] "Доступ до цього бюлетеня обмежений для наступних груп:"
109
107
  msgstr[2] "Доступ до цього бюлетеня обмежений для наступних груп:"
110
- msgstr[3] "Доступ до цього бюлетеня обмежений для наступних груп:"
108
+ msgstr[3] "Доступ до цього бюлетеня обмежений для наступної групи:"
111
109
 
112
110
  #: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:33
113
111
  msgid "Read more"
114
112
  msgstr "Читати далі"
115
113
 
116
114
  #: aa_bulletin_board/templates/aa_bulletin_board/dashboard.html:47
117
- #, fuzzy
118
- #| msgid "Bulletin Board"
119
115
  msgid "No bulletins found."
120
- msgstr "Дошка оголошень"
116
+ msgstr "Не зайдено бюлетеня."
121
117
 
122
118
  #: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:11
123
- #, fuzzy
124
- #| msgid "Edit Bulletin"
125
119
  msgid "Edit bulletin"
126
120
  msgstr "Редагувати бюлетень"
127
121
 
128
122
  #: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:14
129
123
  #: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:25
130
- #, fuzzy
131
- #| msgid "Create New Bulletin"
132
124
  msgid "Create new bulletin"
133
125
  msgstr "Створити новий бюлетень"
134
126
 
135
127
  #: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:45
136
- #, fuzzy
137
- #| msgid "Update Bulletin"
138
128
  msgid "Update bulletin"
139
- msgstr "Бюлетень оновлень"
129
+ msgstr "Оновити бюлетень"
140
130
 
141
131
  #: aa_bulletin_board/templates/aa_bulletin_board/edit-bulletin.html:47
142
- #, fuzzy
143
- #| msgid "Create Bulletin"
144
132
  msgid "Create bulletin"
145
133
  msgstr "Створити бюлетень"
146
134
 
147
135
  #: aa_bulletin_board/templates/aa_bulletin_board/partials/common/bulletin-board-management.html:7
148
- #, fuzzy
149
- #| msgid "Add Bulletin"
150
136
  msgid "Add bulletin"
151
137
  msgstr "Додати інформаційний бюлетень"
152
138
 
@@ -164,14 +150,10 @@ msgid "Bulletin \"{bulletin__title}\" created."
164
150
  msgstr "Створено бюлетень «{bulletin__title}»."
165
151
 
166
152
  #: aa_bulletin_board/views.py:141
167
- #, fuzzy
168
- #| msgid "The bulletin you are looking for does not exist, or you don't have access to it."
169
153
  msgid "The bulletin you are looking for does either not exist, or you don't have access to it."
170
154
  msgstr "Бюлетень, який ви шукаєте, не існує, або у вас немає до нього доступу."
171
155
 
172
156
  #: aa_bulletin_board/views.py:168
173
- #, fuzzy
174
- #| msgid "The bulletin you are trying to edit for does not exist."
175
157
  msgid "The bulletin you are trying to edit does not exist."
176
158
  msgstr "Бюлетень, який ви намагаєтеся відредагувати, не існує."
177
159
 
@@ -186,7 +168,5 @@ msgid "Bulletin \"{bulletin.title}\" deleted."
186
168
  msgstr "Бюлетень «{bulletin.title}» вилучено."
187
169
 
188
170
  #: aa_bulletin_board/views.py:234
189
- #, fuzzy
190
- #| msgid "The bulletin you are trying to delete for does not exist."
191
171
  msgid "The bulletin you are trying to delete does not exist."
192
- msgstr "Зведення, яке ви намагаєтеся видалити, не існує."
172
+ msgstr "Бюлетень, яке ви намагаєтеся видалити, не існує."
@@ -10,7 +10,7 @@ msgid ""
10
10
  msgstr ""
11
11
  "Project-Id-Version: PACKAGE VERSION\n"
12
12
  "Report-Msgid-Bugs-To: https://github.com/ppfeufer/aa-bulletin-board/issues\n"
13
- "POT-Creation-Date: 2025-03-06 15:55+0100\n"
13
+ "POT-Creation-Date: 2025-03-24 13:07+0100\n"
14
14
  "PO-Revision-Date: 2024-05-28 16:27+0000\n"
15
15
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
16
16
  "Language-Team: Chinese (Simplified) <https://weblate.ppfeufer.de/projects/alliance-auth-apps/aa-bulletin-board/zh_Hans/>\n"
@@ -39,49 +39,49 @@ msgstr "公告栏"
39
39
  msgid "Restrict this bulletin to certain groups. If no group restrictions are in place, everyone who has access to this module can read this bulletin."
40
40
  msgstr "限制此公告为特定组可阅读。如果没有设置组限制,每个访问此模块的人都可以阅读此公告。"
41
41
 
42
- #: aa_bulletin_board/forms.py:110
42
+ #: aa_bulletin_board/forms.py:112
43
43
  msgid "You have forgotten the content!"
44
44
  msgstr "你忘记了内容!"
45
45
 
46
- #: aa_bulletin_board/models.py:72
46
+ #: aa_bulletin_board/models.py:69
47
47
  msgid "Can access this app"
48
48
  msgstr "能够访问此应用程序"
49
49
 
50
- #: aa_bulletin_board/models.py:73
50
+ #: aa_bulletin_board/models.py:70
51
51
  msgid "Can manage (add/change/remove) bulletins"
52
52
  msgstr "可以管理(添加/更改/移除)公告"
53
53
 
54
- #: aa_bulletin_board/models.py:82
54
+ #: aa_bulletin_board/models.py:79
55
55
  msgid "Title"
56
56
  msgstr "头衔"
57
57
 
58
- #: aa_bulletin_board/models.py:85
58
+ #: aa_bulletin_board/models.py:82
59
59
  msgid "Content"
60
60
  msgstr "目录"
61
61
 
62
62
  #. Translators: This is the date and time the bulletin has been created
63
- #: aa_bulletin_board/models.py:91
63
+ #: aa_bulletin_board/models.py:88
64
64
  msgid "Created"
65
65
  msgstr "创建"
66
66
 
67
67
  #. Translators: This is the date and time the bulletin has been updated
68
- #: aa_bulletin_board/models.py:97
68
+ #: aa_bulletin_board/models.py:94
69
69
  msgid "Updated"
70
70
  msgstr "更新"
71
71
 
72
- #: aa_bulletin_board/models.py:106
72
+ #: aa_bulletin_board/models.py:103
73
73
  msgid "User"
74
74
  msgstr "用户"
75
75
 
76
- #: aa_bulletin_board/models.py:112
76
+ #: aa_bulletin_board/models.py:109
77
77
  msgid "Group restrictions"
78
78
  msgstr "组别限制"
79
79
 
80
- #: aa_bulletin_board/models.py:123
80
+ #: aa_bulletin_board/models.py:120
81
81
  msgid "Bulletin"
82
82
  msgstr "公告"
83
83
 
84
- #: aa_bulletin_board/models.py:124
84
+ #: aa_bulletin_board/models.py:121
85
85
  msgid "Bulletins"
86
86
  msgstr "公告"
87
87
 
@@ -16,7 +16,7 @@ from django_ckeditor_5.fields import CKEditor5Field
16
16
 
17
17
  # AA Bulletin Board
18
18
  from aa_bulletin_board.constants import APP_TITLE
19
- from aa_bulletin_board.helpers import string_cleanup
19
+ from aa_bulletin_board.helper.string import string_cleanup
20
20
  from aa_bulletin_board.managers import BulletinManager
21
21
 
22
22
 
@@ -41,16 +41,13 @@ def get_bulletin_slug_from_title(bulletin_title: str) -> str:
41
41
  :rtype:
42
42
  """
43
43
 
44
- run: int = 0
45
- bulletin_slug: str = slugify(
46
- value=unidecode.unidecode(bulletin_title), allow_unicode=True
47
- )
44
+ base_slug = slugify(value=unidecode.unidecode(bulletin_title), allow_unicode=True)
45
+ bulletin_slug = base_slug
46
+ run = 0
48
47
 
49
48
  while Bulletin.objects.filter(slug=bulletin_slug).exists():
50
49
  run += 1
51
- bulletin_slug: str = slugify(
52
- value=unidecode.unidecode(f"{bulletin_title}-{run}"), allow_unicode=True
53
- )
50
+ bulletin_slug = f"{base_slug}-{run}"
54
51
 
55
52
  return bulletin_slug
56
53
 
@@ -141,8 +138,7 @@ class Bulletin(models.Model):
141
138
 
142
139
  self.content = string_cleanup(string=self.content)
143
140
 
144
- if self.slug == "":
145
- bulletin_slug = get_bulletin_slug_from_title(bulletin_title=self.title)
146
- self.slug = bulletin_slug
141
+ if not self.slug:
142
+ self.slug = get_bulletin_slug_from_title(bulletin_title=self.title)
147
143
 
148
144
  super().save(*args, **kwargs)
@@ -5,7 +5,7 @@
5
5
  {% block page_title %}{{ bulletin.title }} » {% translate "Bulletin Board" %}{% endblock %}
6
6
 
7
7
  {% block aabulletinboard_header %}
8
- {% include "aa_bulletin_board/partials/header/page-header.html" with header_text=bulletin.title %}
8
+ {% include "framework/header/page-header.html" with title=bulletin.title %}
9
9
  {% endblock %}
10
10
 
11
11
  {% block aabulletinboard_body %}
@@ -20,10 +20,10 @@
20
20
 
21
21
  {% block aabulletinboard_header %}
22
22
  {% if bulletin %}
23
- {% include "aa_bulletin_board/partials/header/page-header.html" with header_text=bulletin.title %}
23
+ {% include "framework/header/page-header.html" with title=bulletin.title %}
24
24
  {% else %}
25
25
  {% translate "Create new bulletin" as header_text %}
26
- {% include "aa_bulletin_board/partials/header/page-header.html" with header_text=header_text %}
26
+ {% include "framework/header/page-header.html" with title=header_text %}
27
27
  {% endif %}
28
28
  {% endblock %}
29
29
 
@@ -13,7 +13,7 @@ from django.urls import reverse
13
13
 
14
14
  # AA Bulletin Board
15
15
  from aa_bulletin_board.forms import BulletinForm
16
- from aa_bulletin_board.helpers import string_cleanup
16
+ from aa_bulletin_board.helper.string import string_cleanup
17
17
  from aa_bulletin_board.models import Bulletin, get_sentinel_user
18
18
  from aa_bulletin_board.tests.utils import create_fake_user
19
19