##// END OF EJS Templates
Added button to update thread manually if websocket connection failed
neko259 -
r1011:23c5d871 default
parent child Browse files
Show More
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-02-24 08:32+0200\n"
10 "POT-Creation-Date: 2015-03-03 23:49+0200\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"
@@ -38,93 +38,93 b' msgstr "\xd1\x80\xd0\xb0\xd0\xb7\xd1\x80\xd0\xb0\xd0\xb1\xd0\xbe\xd1\x82\xd1\x87\xd0\xb8\xd0\xba javascript"'
38 38 msgid "designer"
39 39 msgstr "дизайнер"
40 40
41 #: forms.py:32
41 #: forms.py:33
42 42 msgid "Type message here. Use formatting panel for more advanced usage."
43 43 msgstr ""
44 44 "Вводите сообщение сюда. Используйте панель для более сложного форматирования."
45 45
46 #: forms.py:33
46 #: forms.py:34
47 47 msgid "tag1 several_words_tag"
48 48 msgstr "метка1 метка_из_нескольких_слов"
49 49
50 #: forms.py:35
50 #: forms.py:36
51 51 msgid "Title"
52 52 msgstr "Заголовок"
53 53
54 #: forms.py:36
54 #: forms.py:37
55 55 msgid "Text"
56 56 msgstr "Текст"
57 57
58 #: forms.py:37
58 #: forms.py:38
59 59 msgid "Tag"
60 60 msgstr "Метка"
61 61
62 #: forms.py:38 templates/boards/base.html:38 templates/search/search.html:9
62 #: forms.py:39 templates/boards/base.html:38 templates/search/search.html:9
63 63 #: templates/search/search.html.py:13
64 64 msgid "Search"
65 65 msgstr "Поиск"
66 66
67 #: forms.py:125
67 #: forms.py:131
68 68 msgid "Image"
69 69 msgstr "Изображение"
70 70
71 #: forms.py:128
71 #: forms.py:134
72 72 msgid "Image URL"
73 73 msgstr "URL изображения"
74 74
75 #: forms.py:134
75 #: forms.py:140
76 76 msgid "e-mail"
77 77 msgstr ""
78 78
79 #: forms.py:145
79 #: forms.py:151
80 80 #, python-format
81 81 msgid "Title must have less than %s characters"
82 82 msgstr "Заголовок должен иметь меньше %s символов"
83 83
84 #: forms.py:154
84 #: forms.py:160
85 85 #, python-format
86 86 msgid "Text must have less than %s characters"
87 87 msgstr "Текст должен быть короче %s символов"
88 88
89 #: forms.py:175
89 #: forms.py:181
90 90 msgid "Invalid URL"
91 91 msgstr "Неверный URL"
92 92
93 #: forms.py:212
93 #: forms.py:218
94 94 msgid "Either text or image must be entered."
95 95 msgstr "Текст или картинка должны быть введены."
96 96
97 #: forms.py:219 forms.py:261 forms.py:275
97 #: forms.py:225 forms.py:267 forms.py:281
98 98 #, python-format
99 99 msgid "Image must be less than %s bytes"
100 100 msgstr "Изображение должно быть менее %s байт"
101 101
102 #: forms.py:235
102 #: forms.py:241
103 103 #, python-format
104 104 msgid "Wait %s seconds after last posting"
105 105 msgstr "Подождите %s секунд после последнего постинга"
106 106
107 #: forms.py:296 templates/boards/rss/post.html:10 templates/boards/tags.html:7
107 #: forms.py:302 templates/boards/rss/post.html:10 templates/boards/tags.html:7
108 108 msgid "Tags"
109 109 msgstr "Метки"
110 110
111 #: forms.py:303
111 #: forms.py:309
112 112 msgid "Inappropriate characters in tags."
113 113 msgstr "Недопустимые символы в метках."
114 114
115 #: forms.py:314
115 #: forms.py:320
116 116 msgid "Need at least 1 required tag."
117 117 msgstr "Нужна хотя бы 1 обязательная метка."
118 118
119 #: forms.py:327
119 #: forms.py:333
120 120 msgid "Theme"
121 121 msgstr "Тема"
122 122
123 #: forms.py:328
123 #: forms.py:334
124 124 msgid "User name"
125 125 msgstr "Имя пользователя"
126 126
127 #: forms.py:334
127 #: forms.py:340
128 128 msgid "Inappropriate characters."
129 129 msgstr "Недопустимые символы."
130 130
@@ -198,12 +198,12 b' msgid "Insert your user id above"'
198 198 msgstr "Вставьте свой ID пользователя выше"
199 199
200 200 #: templates/boards/notifications.html:16
201 #: templates/boards/posting_general.html:85 templates/search/search.html:22
201 #: templates/boards/posting_general.html:79 templates/search/search.html:22
202 202 msgid "Previous page"
203 203 msgstr "Предыдущая страница"
204 204
205 205 #: templates/boards/notifications.html:26
206 #: templates/boards/posting_general.html:125 templates/search/search.html:33
206 #: templates/boards/posting_general.html:117 templates/search/search.html:33
207 207 msgid "Next page"
208 208 msgstr "Следующая страница"
209 209
@@ -241,51 +241,51 b' msgstr "\xd1\x81\xd0\xbe\xd0\xbe\xd0\xb1\xd1\x89\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb9"'
241 241 msgid "images"
242 242 msgstr "изображений"
243 243
244 #: templates/boards/posting_general.html:56
244 #: templates/boards/posting_general.html:52
245 245 msgid "Show tag"
246 246 msgstr "Показывать метку"
247 247
248 #: templates/boards/posting_general.html:60
248 #: templates/boards/posting_general.html:56
249 249 msgid "Hide tag"
250 250 msgstr "Скрывать метку"
251 251
252 #: templates/boards/posting_general.html:67
252 #: templates/boards/posting_general.html:63
253 253 msgid "Edit tag"
254 254 msgstr "Изменить метку"
255 255
256 #: templates/boards/posting_general.html:70
256 #: templates/boards/posting_general.html:66
257 257 #, python-format
258 258 msgid "This tag has %(thread_count)s threads and %(post_count)s posts."
259 259 msgstr "С этой меткой есть %(thread_count)s тем и %(post_count)s сообщений."
260 260
261 #: templates/boards/posting_general.html:99
261 #: templates/boards/posting_general.html:93
262 262 #, python-format
263 263 msgid "Skipped %(count)s replies. Open thread to see all replies."
264 264 msgstr "Пропущено %(count)s ответов. Откройте тред, чтобы увидеть все ответы."
265 265
266 #: templates/boards/posting_general.html:130
266 #: templates/boards/posting_general.html:122
267 267 msgid "No threads exist. Create the first one!"
268 268 msgstr "Нет тем. Создайте первую!"
269 269
270 #: templates/boards/posting_general.html:136
270 #: templates/boards/posting_general.html:128
271 271 msgid "Create new thread"
272 272 msgstr "Создать новую тему"
273 273
274 #: templates/boards/posting_general.html:141 templates/boards/preview.html:16
275 #: templates/boards/thread.html:54
274 #: templates/boards/posting_general.html:133 templates/boards/preview.html:16
275 #: templates/boards/thread.html:53
276 276 msgid "Post"
277 277 msgstr "Отправить"
278 278
279 #: templates/boards/posting_general.html:146
279 #: templates/boards/posting_general.html:139
280 280 msgid "Tags must be delimited by spaces. Text or image is required."
281 281 msgstr ""
282 282 "Метки должны быть разделены пробелами. Текст или изображение обязательны."
283 283
284 #: templates/boards/posting_general.html:149 templates/boards/thread.html:59
284 #: templates/boards/posting_general.html:142 templates/boards/thread.html:59
285 285 msgid "Text syntax"
286 286 msgstr "Синтаксис текста"
287 287
288 #: templates/boards/posting_general.html:161
288 #: templates/boards/posting_general.html:154
289 289 msgid "Pages:"
290 290 msgstr "Страницы: "
291 291
@@ -305,11 +305,11 b' msgstr "\xd0\x92\xd1\x8b \xd0\xbc\xd0\xbe\xd0\xb4\xd0\xb5\xd1\x80\xd0\xb0\xd1\x82\xd0\xbe\xd1\x80."'
305 305 msgid "Hidden tags:"
306 306 msgstr "Скрытые метки:"
307 307
308 #: templates/boards/settings.html:26
308 #: templates/boards/settings.html:27
309 309 msgid "No hidden tags."
310 310 msgstr "Нет скрытых меток."
311 311
312 #: templates/boards/settings.html:35
312 #: templates/boards/settings.html:36
313 313 msgid "Save"
314 314 msgstr "Сохранить"
315 315
@@ -374,6 +374,10 b' msgstr "\xd1\x81\xd0\xbe\xd0\xbe\xd0\xb1\xd1\x89\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb9 \xd0\xb4\xd0\xbe \xd0\xb1\xd0\xb0\xd0\xbc\xd0\xbf\xd0\xbb\xd0\xb8\xd0\xbc\xd0\xb8\xd1\x82\xd0\xb0"'
374 374 msgid "Reply to thread"
375 375 msgstr "Ответить в тему"
376 376
377 #: templates/boards/thread.html:85
378 msgid "Update"
379 msgstr "Обновить"
380
377 381 #: templates/boards/thread.html:88 templates/boards/thread_gallery.html:61
378 382 msgid "Last update: "
379 383 msgstr "Последнее обновление: "
@@ -66,7 +66,7 b' function connectWebsocket() {'
66 66
67 67 // For the case we closed the browser and missed some updates
68 68 getThreadDiff();
69 $('#autoupdate').text('[+]');
69 $('#autoupdate').hide();
70 70 });
71 71
72 72 centrifuge.connect();
@@ -327,4 +327,6 b' function processNewPost(post) {'
327 327
328 328 resetForm(form);
329 329 }
330
331 $('#autoupdate').click(getThreadDiff);
330 332 });
@@ -82,7 +82,7 b''
82 82 data-ws-host="{{ ws_host }}"
83 83 data-ws-port="{{ ws_port }}">
84 84 {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %}
85 <span id="autoupdate">[-]</span>
85 <button id="autoupdate">{% trans 'Update' %}</button>
86 86 <span id="reply-count">{{ thread.get_reply_count }}</span>/{{ max_replies }} {% trans 'messages' %},
87 87 <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}.
88 88 {% trans 'Last update: ' %}<span id="last-update">{{ thread.last_edit_time|date:'r' }}</span>
@@ -54,7 +54,7 b''
54 54 {% get_current_language as LANGUAGE_CODE %}
55 55
56 56 <span class="metapanel" data-last-update="{{ last_update }}">
57 {% cache 600 thread_meta thread.last_edit_time moderator LANGUAGE_CODE %}
57 {% cache 600 thread_gallery_meta thread.last_edit_time moderator LANGUAGE_CODE %}
58 58 <span id="reply-count">{{ thread.get_reply_count }}</span>/{{ max_replies }}
59 59 {% trans 'messages' %},
60 60 <span id="image-count">{{ thread.get_images_count }}</span> {% trans 'images' %}.
General Comments 0
You need to be logged in to leave comments. Login now