##// END OF EJS Templates
Show the list of required tags when non was entered at thread creation
neko259 -
r1099:e990ce46 default
parent child Browse files
Show More
@@ -340,7 +340,10 b' class ThreadForm(PostForm):'
340 340 break
341 341
342 342 if not required_tag_exists:
343 raise forms.ValidationError(_('Need at least 1 required tag.'))
343 all_tags = Tag.objects.filter(required=True)
344 raise forms.ValidationError(
345 _('Need at least one of the tags: ')
346 + ', '.join([tag.name for tag in all_tags]))
344 347
345 348 return tags
346 349
1 NO CONTENT: modified file, binary diff hidden
@@ -7,7 +7,7 b' msgid ""'
7 7 msgstr ""
8 8 "Project-Id-Version: PACKAGE VERSION\n"
9 9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2015-04-14 13:07+0300\n"
10 "POT-Creation-Date: 2015-04-14 21:16+0300\n"
11 11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 13 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -120,23 +120,24 b' msgstr "\xd0\x9c\xd0\xb5\xd1\x82\xd0\xba\xd0\xb8"'
120 120 msgid "Inappropriate characters in tags."
121 121 msgstr "Недопустимые символы в метках."
122 122
123 #: forms.py:343
124 msgid "Need at least 1 required tag."
125 msgstr "Нужна хотя бы 1 обязательная метка."
123 #: forms.py:345
124 #| msgid "Need at least 1 required tag."
125 msgid "Need at least one of the tags: "
126 msgstr "Нужна хотя бы одна из меток: "
126 127
127 #: forms.py:355
128 #: forms.py:358
128 129 msgid "Theme"
129 130 msgstr "Тема"
130 131
131 #: forms.py:356
132 #: forms.py:359
132 133 msgid "User name"
133 134 msgstr "Имя пользователя"
134 135
135 #: forms.py:357
136 #: forms.py:360
136 137 msgid "Time zone"
137 138 msgstr "Часовой пояс"
138 139
139 #: forms.py:363
140 #: forms.py:366
140 141 msgid "Inappropriate characters."
141 142 msgstr "Недопустимые символы."
142 143
@@ -212,31 +213,31 b' msgstr "\xd0\x9f\xd1\x80\xd0\xb5\xd0\xb4\xd1\x8b\xd0\xb4\xd1\x83\xd1\x89\xd0\xb0\xd1\x8f \xd1\x81\xd1\x82\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb8\xd1\x86\xd0\xb0"'
212 213 msgid "Next page"
213 214 msgstr "Следующая страница"
214 215
215 #: templates/boards/post.html:32
216 #: templates/boards/post.html:25
216 217 msgid "Open"
217 218 msgstr "Открыть"
218 219
219 #: templates/boards/post.html:34 templates/boards/post.html.py:38
220 #: templates/boards/post.html:27 templates/boards/post.html.py:31
220 221 msgid "Reply"
221 222 msgstr "Ответ"
222 223
223 #: templates/boards/post.html:43
224 #: templates/boards/post.html:36
224 225 msgid "Edit"
225 226 msgstr "Изменить"
226 227
227 #: templates/boards/post.html:45
228 #: templates/boards/post.html:38
228 229 msgid "Edit thread"
229 230 msgstr "Изменить тему"
230 231
231 #: templates/boards/post.html:75
232 #: templates/boards/post.html:70
232 233 msgid "Replies"
233 234 msgstr "Ответы"
234 235
235 #: templates/boards/post.html:86 templates/boards/thread.html:31
236 #: templates/boards/post.html:82 templates/boards/thread.html:31
236 237 msgid "messages"
237 238 msgstr "сообщений"
238 239
239 #: templates/boards/post.html:87 templates/boards/thread.html:32
240 #: templates/boards/post.html:83 templates/boards/thread.html:32
240 241 msgid "images"
241 242 msgstr "изображений"
242 243
General Comments 0
You need to be logged in to leave comments. Login now