Show More
|
1 | NO CONTENT: modified file, binary diff hidden |
@@ -1,368 +1,372 b'' | |||
|
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 | 4 | # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
|
5 | 5 | # |
|
6 | 6 | msgid "" |
|
7 | 7 | msgstr "" |
|
8 | 8 | "Project-Id-Version: PACKAGE VERSION\n" |
|
9 | 9 | "Report-Msgid-Bugs-To: \n" |
|
10 |
"POT-Creation-Date: 2014-07-05 |
|
|
10 | "POT-Creation-Date: 2014-07-05 20:42+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" |
|
14 | 14 | "Language: ru\n" |
|
15 | 15 | "MIME-Version: 1.0\n" |
|
16 | 16 | "Content-Type: text/plain; charset=UTF-8\n" |
|
17 | 17 | "Content-Transfer-Encoding: 8bit\n" |
|
18 | 18 | "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" |
|
19 | 19 | "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" |
|
20 | 20 | |
|
21 | 21 | #: authors.py:9 |
|
22 | 22 | msgid "author" |
|
23 | 23 | msgstr "автор" |
|
24 | 24 | |
|
25 | 25 | #: authors.py:10 |
|
26 | 26 | msgid "developer" |
|
27 | 27 | msgstr "разработчик" |
|
28 | 28 | |
|
29 | 29 | #: authors.py:11 |
|
30 | 30 | msgid "javascript developer" |
|
31 | 31 | msgstr "разработчик javascript" |
|
32 | 32 | |
|
33 | 33 | #: authors.py:12 |
|
34 | 34 | msgid "designer" |
|
35 | 35 | msgstr "дизайнер" |
|
36 | 36 | |
|
37 | 37 | #: forms.py:23 |
|
38 | 38 | msgid "" |
|
39 | 39 | "Type message here. You can reply to message >>123 like\n" |
|
40 | 40 | " this. 2 new lines are required to start new paragraph." |
|
41 | 41 | msgstr "" |
|
42 | 42 | "Введите сообщение здесь. Вы можете ответить на сообщение >>123 вот так. 2 " |
|
43 | 43 | "переноса строки обязательны для создания нового абзаца." |
|
44 | 44 | |
|
45 | 45 | #: forms.py:25 |
|
46 | 46 | msgid "tag1 several_words_tag" |
|
47 | 47 | msgstr "тег1 тег_из_нескольких_слов" |
|
48 | 48 | |
|
49 | 49 | #: forms.py:27 |
|
50 | 50 | msgid "Such image was already posted" |
|
51 | 51 | msgstr "Такое изображение уже было загружено" |
|
52 | 52 | |
|
53 | 53 | #: forms.py:29 |
|
54 | 54 | msgid "Title" |
|
55 | 55 | msgstr "Заголовок" |
|
56 | 56 | |
|
57 | 57 | #: forms.py:30 |
|
58 | 58 | msgid "Text" |
|
59 | 59 | msgstr "Текст" |
|
60 | 60 | |
|
61 | 61 | #: forms.py:31 |
|
62 | 62 | msgid "Tag" |
|
63 | 63 | msgstr "Тег" |
|
64 | 64 | |
|
65 | 65 | #: forms.py:32 templates/boards/base.html:54 templates/search/search.html:9 |
|
66 | 66 | #: templates/search/search.html.py:13 |
|
67 | 67 | msgid "Search" |
|
68 | 68 | msgstr "Поиск" |
|
69 | 69 | |
|
70 | 70 | #: forms.py:109 |
|
71 | 71 | msgid "Image" |
|
72 | 72 | msgstr "Изображение" |
|
73 | 73 | |
|
74 | 74 | #: forms.py:114 |
|
75 | 75 | msgid "e-mail" |
|
76 | 76 | msgstr "" |
|
77 | 77 | |
|
78 | 78 | #: forms.py:125 |
|
79 | 79 | #, python-format |
|
80 | 80 | msgid "Title must have less than %s characters" |
|
81 | 81 | msgstr "Заголовок должен иметь меньше %s символов" |
|
82 | 82 | |
|
83 | 83 | #: forms.py:134 |
|
84 | 84 | #, python-format |
|
85 | 85 | msgid "Text must have less than %s characters" |
|
86 | 86 | msgstr "Текст должен быть короче %s символов" |
|
87 | 87 | |
|
88 | 88 | #: forms.py:145 |
|
89 | 89 | #, python-format |
|
90 | 90 | msgid "Image must be less than %s bytes" |
|
91 | 91 | msgstr "Изображение должно быть менее %s байт" |
|
92 | 92 | |
|
93 | 93 | #: forms.py:180 |
|
94 | 94 | msgid "Either text or image must be entered." |
|
95 | 95 | msgstr "Текст или картинка должны быть введены." |
|
96 | 96 | |
|
97 | 97 | #: forms.py:200 |
|
98 | 98 | #, python-format |
|
99 | 99 | msgid "Wait %s seconds after last posting" |
|
100 | 100 | msgstr "Подождите %s секунд после последнего постинга" |
|
101 | 101 | |
|
102 | 102 | #: forms.py:216 templates/boards/tags.html:7 templates/boards/rss/post.html:10 |
|
103 | 103 | msgid "Tags" |
|
104 | 104 | msgstr "Теги" |
|
105 | 105 | |
|
106 | 106 | #: forms.py:223 forms.py:291 |
|
107 | 107 | msgid "Inappropriate characters in tags." |
|
108 | 108 | msgstr "Недопустимые символы в тегах." |
|
109 | 109 | |
|
110 | 110 | #: forms.py:251 forms.py:272 |
|
111 | 111 | msgid "Captcha validation failed" |
|
112 | 112 | msgstr "Проверка капчи провалена" |
|
113 | 113 | |
|
114 | 114 | #: forms.py:278 |
|
115 | 115 | msgid "Theme" |
|
116 | 116 | msgstr "Тема" |
|
117 | 117 | |
|
118 | 118 | #: forms.py:314 |
|
119 | 119 | msgid "Invalid master password" |
|
120 | 120 | msgstr "Неверный мастер-пароль" |
|
121 | 121 | |
|
122 | 122 | #: forms.py:328 |
|
123 | 123 | #, python-format |
|
124 | 124 | msgid "Wait %s minutes after last login" |
|
125 | 125 | msgstr "Подождите %s минут после последнего входа" |
|
126 | 126 | |
|
127 | 127 | #: templates/boards/404.html:6 |
|
128 | 128 | msgid "Not found" |
|
129 | 129 | msgstr "Не найдено" |
|
130 | 130 | |
|
131 | 131 | #: templates/boards/404.html:12 |
|
132 | 132 | msgid "This page does not exist" |
|
133 | 133 | msgstr "Этой страницы не существует" |
|
134 | 134 | |
|
135 | 135 | #: templates/boards/authors.html:6 templates/boards/authors.html.py:12 |
|
136 | 136 | msgid "Authors" |
|
137 | 137 | msgstr "Авторы" |
|
138 | 138 | |
|
139 | 139 | #: templates/boards/authors.html:26 |
|
140 | 140 | msgid "Distributed under the" |
|
141 | 141 | msgstr "Распространяется под" |
|
142 | 142 | |
|
143 | 143 | #: templates/boards/authors.html:28 |
|
144 | 144 | msgid "license" |
|
145 | 145 | msgstr "лицензией" |
|
146 | 146 | |
|
147 | 147 | #: templates/boards/authors.html:30 |
|
148 | 148 | msgid "Repository" |
|
149 | 149 | msgstr "Репозиторий" |
|
150 | 150 | |
|
151 | 151 | #: templates/boards/base.html:12 |
|
152 | 152 | msgid "Feed" |
|
153 | 153 | msgstr "Лента" |
|
154 | 154 | |
|
155 | 155 | #: templates/boards/base.html:29 |
|
156 | 156 | msgid "All threads" |
|
157 | 157 | msgstr "Все темы" |
|
158 | 158 | |
|
159 | 159 | #: templates/boards/base.html:34 |
|
160 | 160 | msgid "Tag management" |
|
161 | 161 | msgstr "Управление тегами" |
|
162 | 162 | |
|
163 | 163 | #: templates/boards/base.html:36 templates/boards/settings.html:7 |
|
164 | 164 | msgid "Settings" |
|
165 | 165 | msgstr "Настройки" |
|
166 | 166 | |
|
167 | 167 | #: templates/boards/base.html:50 |
|
168 | 168 | msgid "Logout" |
|
169 | 169 | msgstr "Выход" |
|
170 | 170 | |
|
171 | 171 | #: templates/boards/base.html:52 templates/boards/login.html:6 |
|
172 | 172 | #: templates/boards/login.html.py:16 |
|
173 | 173 | msgid "Login" |
|
174 | 174 | msgstr "Вход" |
|
175 | 175 | |
|
176 | 176 | #: templates/boards/base.html:56 |
|
177 | 177 | #, python-format |
|
178 | 178 | msgid "Speed: %(ppd)s posts per day" |
|
179 | 179 | msgstr "Скорость: %(ppd)s сообщений в день" |
|
180 | 180 | |
|
181 | 181 | #: templates/boards/base.html:58 |
|
182 | 182 | msgid "Up" |
|
183 | 183 | msgstr "Вверх" |
|
184 | 184 | |
|
185 | 185 | #: templates/boards/login.html:19 |
|
186 | 186 | msgid "Insert your user id above" |
|
187 | 187 | msgstr "Вставьте свой ID пользователя выше" |
|
188 | 188 | |
|
189 | 189 | #: templates/boards/post.html:21 templates/boards/staticpages/help.html:19 |
|
190 | 190 | msgid "Quote" |
|
191 | 191 | msgstr "Цитата" |
|
192 | 192 | |
|
193 | 193 | #: templates/boards/post.html:31 |
|
194 | 194 | msgid "Open" |
|
195 | 195 | msgstr "Открыть" |
|
196 | 196 | |
|
197 | 197 | #: templates/boards/post.html:33 |
|
198 | 198 | msgid "Reply" |
|
199 | 199 | msgstr "Ответ" |
|
200 | 200 | |
|
201 | 201 | #: templates/boards/post.html:40 |
|
202 | 202 | msgid "Edit" |
|
203 | 203 | msgstr "Изменить" |
|
204 | 204 | |
|
205 | 205 | #: templates/boards/post.html:42 |
|
206 | 206 | msgid "Delete" |
|
207 | 207 | msgstr "Удалить" |
|
208 | 208 | |
|
209 | 209 | #: templates/boards/post.html:45 |
|
210 | 210 | msgid "Ban IP" |
|
211 | 211 | msgstr "Заблокировать IP" |
|
212 | 212 | |
|
213 | 213 | #: templates/boards/post.html:76 |
|
214 | 214 | msgid "Replies" |
|
215 | 215 | msgstr "Ответы" |
|
216 | 216 | |
|
217 | 217 | #: templates/boards/post.html:86 templates/boards/thread.html:88 |
|
218 | 218 | #: templates/boards/thread_gallery.html:61 |
|
219 | 219 | msgid "replies" |
|
220 | 220 | msgstr "ответов" |
|
221 | 221 | |
|
222 | 222 | #: templates/boards/post.html:87 templates/boards/thread.html:89 |
|
223 | 223 | #: templates/boards/thread_gallery.html:62 |
|
224 | 224 | msgid "images" |
|
225 | 225 | msgstr "изображений" |
|
226 | 226 | |
|
227 | 227 | #: templates/boards/post_admin.html:19 |
|
228 | 228 | msgid "Tags:" |
|
229 | 229 | msgstr "Теги:" |
|
230 | 230 | |
|
231 | 231 | #: templates/boards/post_admin.html:30 |
|
232 | 232 | msgid "Add tag" |
|
233 | 233 | msgstr "Добавить тег" |
|
234 | 234 | |
|
235 | 235 | #: templates/boards/posting_general.html:56 |
|
236 | 236 | msgid "Show tag" |
|
237 | 237 | msgstr "Показывать тег" |
|
238 | 238 | |
|
239 | 239 | #: templates/boards/posting_general.html:60 |
|
240 | 240 | msgid "Hide tag" |
|
241 | 241 | msgstr "Скрывать тег" |
|
242 | 242 | |
|
243 | 243 | #: templates/boards/posting_general.html:79 templates/search/search.html:22 |
|
244 | 244 | msgid "Previous page" |
|
245 | 245 | msgstr "Предыдущая страница" |
|
246 | 246 | |
|
247 | 247 | #: templates/boards/posting_general.html:94 |
|
248 | 248 | #, python-format |
|
249 | 249 | msgid "Skipped %(count)s replies. Open thread to see all replies." |
|
250 | 250 | msgstr "Пропущено %(count)s ответов. Откройте тред, чтобы увидеть все ответы." |
|
251 | 251 | |
|
252 | 252 | #: templates/boards/posting_general.html:121 templates/search/search.html:33 |
|
253 | 253 | msgid "Next page" |
|
254 | 254 | msgstr "Следующая страница" |
|
255 | 255 | |
|
256 | 256 | #: templates/boards/posting_general.html:126 |
|
257 | 257 | msgid "No threads exist. Create the first one!" |
|
258 | 258 | msgstr "Нет тем. Создайте первую!" |
|
259 | 259 | |
|
260 | 260 | #: templates/boards/posting_general.html:132 |
|
261 | 261 | msgid "Create new thread" |
|
262 | 262 | msgstr "Создать новую тему" |
|
263 | 263 | |
|
264 | 264 | #: templates/boards/posting_general.html:137 templates/boards/thread.html:58 |
|
265 | 265 | msgid "Post" |
|
266 | 266 | msgstr "Отправить" |
|
267 | 267 | |
|
268 | 268 | #: templates/boards/posting_general.html:142 |
|
269 | 269 | msgid "Tags must be delimited by spaces. Text or image is required." |
|
270 | 270 | msgstr "" |
|
271 | 271 | "Теги должны быть разделены пробелами. Текст или изображение обязательны." |
|
272 | 272 | |
|
273 | 273 | #: templates/boards/posting_general.html:145 templates/boards/thread.html:66 |
|
274 | 274 | msgid "Text syntax" |
|
275 | 275 | msgstr "Синтаксис текста" |
|
276 | 276 | |
|
277 | 277 | #: templates/boards/posting_general.html:157 |
|
278 | 278 | msgid "Pages:" |
|
279 | 279 | msgstr "Страницы: " |
|
280 | 280 | |
|
281 | 281 | #: templates/boards/settings.html:15 |
|
282 | 282 | msgid "You are moderator." |
|
283 | 283 | msgstr "Вы модератор." |
|
284 | 284 | |
|
285 |
#: templates/boards/settings.html: |
|
|
285 | #: templates/boards/settings.html:19 | |
|
286 | 286 | msgid "Hidden tags:" |
|
287 | 287 | msgstr "Скрытые теги:" |
|
288 | 288 | |
|
289 | #: templates/boards/settings.html:26 | |
|
290 | msgid "No hidden tags." | |
|
291 | msgstr "Нет скрытых тегов." | |
|
292 | ||
|
289 | 293 | #: templates/boards/settings.html:35 |
|
290 | 294 | msgid "Save" |
|
291 | 295 | msgstr "Сохранить" |
|
292 | 296 | |
|
293 | 297 | #: templates/boards/tags.html:22 |
|
294 | 298 | msgid "No tags found." |
|
295 | 299 | msgstr "Теги не найдены." |
|
296 | 300 | |
|
297 | 301 | #: templates/boards/thread.html:20 templates/boards/thread_gallery.html:21 |
|
298 | 302 | msgid "Normal mode" |
|
299 | 303 | msgstr "Нормальный режим" |
|
300 | 304 | |
|
301 | 305 | #: templates/boards/thread.html:21 templates/boards/thread_gallery.html:22 |
|
302 | 306 | msgid "Gallery mode" |
|
303 | 307 | msgstr "Режим галереи" |
|
304 | 308 | |
|
305 | 309 | #: templates/boards/thread.html:29 |
|
306 | 310 | msgid "posts to bumplimit" |
|
307 | 311 | msgstr "сообщений до бамплимита" |
|
308 | 312 | |
|
309 | 313 | #: templates/boards/thread.html:50 |
|
310 | 314 | msgid "Reply to thread" |
|
311 | 315 | msgstr "Ответить в тему" |
|
312 | 316 | |
|
313 | 317 | #: templates/boards/thread.html:63 |
|
314 | 318 | msgid "Switch mode" |
|
315 | 319 | msgstr "Переключить режим" |
|
316 | 320 | |
|
317 | 321 | #: templates/boards/thread.html:90 templates/boards/thread_gallery.html:63 |
|
318 | 322 | msgid "Last update: " |
|
319 | 323 | msgstr "Последнее обновление: " |
|
320 | 324 | |
|
321 | 325 | #: templates/boards/rss/post.html:5 |
|
322 | 326 | msgid "Post image" |
|
323 | 327 | msgstr "Изображение сообщения" |
|
324 | 328 | |
|
325 | 329 | #: templates/boards/staticpages/banned.html:6 |
|
326 | 330 | msgid "Banned" |
|
327 | 331 | msgstr "Заблокирован" |
|
328 | 332 | |
|
329 | 333 | #: templates/boards/staticpages/banned.html:11 |
|
330 | 334 | msgid "Your IP address has been banned. Contact the administrator" |
|
331 | 335 | msgstr "Ваш IP адрес был заблокирован. Свяжитесь с администратором" |
|
332 | 336 | |
|
333 | 337 | #: templates/boards/staticpages/help.html:6 |
|
334 | 338 | #: templates/boards/staticpages/help.html:10 |
|
335 | 339 | msgid "Syntax" |
|
336 | 340 | msgstr "Синтаксис" |
|
337 | 341 | |
|
338 | 342 | #: templates/boards/staticpages/help.html:11 |
|
339 | 343 | msgid "2 line breaks for a new line." |
|
340 | 344 | msgstr "2 перевода строки создают новый абзац." |
|
341 | 345 | |
|
342 | 346 | #: templates/boards/staticpages/help.html:12 |
|
343 | 347 | msgid "Italic text" |
|
344 | 348 | msgstr "Курсивный текст" |
|
345 | 349 | |
|
346 | 350 | #: templates/boards/staticpages/help.html:13 |
|
347 | 351 | msgid "Bold text" |
|
348 | 352 | msgstr "Полужирный текст" |
|
349 | 353 | |
|
350 | 354 | #: templates/boards/staticpages/help.html:14 |
|
351 | 355 | msgid "Spoiler" |
|
352 | 356 | msgstr "Спойлер" |
|
353 | 357 | |
|
354 | 358 | #: templates/boards/staticpages/help.html:15 |
|
355 | 359 | msgid "Link to a post" |
|
356 | 360 | msgstr "Ссылка на сообщение" |
|
357 | 361 | |
|
358 | 362 | #: templates/boards/staticpages/help.html:16 |
|
359 | 363 | msgid "Strikethrough text" |
|
360 | 364 | msgstr "Зачеркнутый текст" |
|
361 | 365 | |
|
362 | 366 | #: templates/boards/staticpages/help.html:17 |
|
363 | 367 | msgid "You need to new line before:" |
|
364 | 368 | msgstr "Перед этими тегами нужна новая строка:" |
|
365 | 369 | |
|
366 | 370 | #: templates/boards/staticpages/help.html:18 |
|
367 | 371 | msgid "Comment" |
|
368 | msgstr "Комментарий" No newline at end of file | |
|
372 | msgstr "Комментарий" |
@@ -1,41 +1,41 b'' | |||
|
1 | 1 | {% extends "boards/base.html" %} |
|
2 | 2 | |
|
3 | 3 | {% load i18n %} |
|
4 | 4 | {% load humanize %} |
|
5 | 5 | |
|
6 | 6 | {% block head %} |
|
7 | 7 | <title>{% trans 'Settings' %} - {{ site_name }}</title> |
|
8 | 8 | {% endblock %} |
|
9 | 9 | |
|
10 | 10 | {% block content %} |
|
11 | 11 | |
|
12 | 12 | <div class="post"> |
|
13 | 13 | <p> |
|
14 |
{% if |
|
|
14 | {% if moderator %} | |
|
15 | 15 | {% trans 'You are moderator.' %} |
|
16 | 16 | {% endif %} |
|
17 | 17 | </p> |
|
18 | {% with hidden_tags=hidden_tags %} | |
|
19 | 18 | {% if hidden_tags %} |
|
20 | 19 | <p>{% trans 'Hidden tags:' %} |
|
21 | 20 | {% for tag in hidden_tags %} |
|
22 | 21 | <a class="tag" href="{% url 'tag' tag.name %}"> |
|
23 | 22 | #{{ tag.name }}</a>{% if not forloop.last %},{% endif %} |
|
24 | 23 | {% endfor %} |
|
25 | 24 | </p> |
|
25 | {% else %} | |
|
26 | <p>{% trans 'No hidden tags.' %}</p> | |
|
26 | 27 | {% endif %} |
|
27 | {% endwith %} | |
|
28 | 28 | </div> |
|
29 | 29 | |
|
30 | 30 | <div class="post-form-w"> |
|
31 | 31 | <div class="post-form"> |
|
32 | 32 | <form method="post">{% csrf_token %} |
|
33 | 33 | {{ form.as_div }} |
|
34 | 34 | <div class="form-submit"> |
|
35 | 35 | <input type="submit" value="{% trans "Save" %}" /> |
|
36 | 36 | </div> |
|
37 | 37 | </form> |
|
38 | 38 | </div> |
|
39 | 39 | </div> |
|
40 | 40 | |
|
41 | 41 | {% endblock %} |
@@ -1,35 +1,38 b'' | |||
|
1 | 1 | from django.db import transaction |
|
2 | 2 | from django.shortcuts import render, redirect |
|
3 | 3 | |
|
4 | 4 | from boards.abstracts.settingsmanager import get_settings_manager |
|
5 | 5 | from boards.views.base import BaseBoardView, CONTEXT_FORM |
|
6 | 6 | from boards.forms import SettingsForm, PlainErrorList |
|
7 | 7 | |
|
8 | CONTEXT_HIDDEN_TAGS = 'hidden_tags' | |
|
9 | ||
|
8 | 10 | |
|
9 | 11 | class SettingsView(BaseBoardView): |
|
10 | 12 | |
|
11 | 13 | def get(self, request): |
|
12 | 14 | context = self.get_context_data(request=request) |
|
13 | 15 | settings_manager = get_settings_manager(request) |
|
14 | 16 | |
|
15 | 17 | selected_theme = settings_manager.get_theme() |
|
16 | 18 | |
|
17 | 19 | form = SettingsForm(initial={'theme': selected_theme}, |
|
18 | 20 | error_class=PlainErrorList) |
|
19 | 21 | |
|
20 | 22 | context[CONTEXT_FORM] = form |
|
23 | context[CONTEXT_HIDDEN_TAGS] = settings_manager.get_hidden_tags() | |
|
21 | 24 | |
|
22 | 25 | return render(request, 'boards/settings.html', context) |
|
23 | 26 | |
|
24 | 27 | def post(self, request): |
|
25 | 28 | settings_manager = get_settings_manager(request) |
|
26 | 29 | |
|
27 | 30 | with transaction.atomic(): |
|
28 | 31 | form = SettingsForm(request.POST, error_class=PlainErrorList) |
|
29 | 32 | |
|
30 | 33 | if form.is_valid(): |
|
31 | 34 | selected_theme = form.cleaned_data['theme'] |
|
32 | 35 | |
|
33 | 36 | settings_manager.set_theme(selected_theme) |
|
34 | 37 | |
|
35 | 38 | return redirect('settings') |
General Comments 0
You need to be logged in to leave comments.
Login now