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: 2013-09- |
|
|
10 | "POT-Creation-Date: 2013-09-14 18:46+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" |
@@ -79,84 +79,92 b' msgstr "\xd0\x92\xd1\x81\xd1\x82\xd0\xb0\xd0\xb2\xd1\x8c\xd1\x82\xd0\xb5 \xd1\x81\xd0\xb2\xd0\xbe\xd0\xb9 ID \xd0\xbf\xd0\xbe\xd0\xbb\xd1\x8c\xd0\xb7\xd0\xbe\xd0\xb2\xd0\xb0\xd1\x82\xd0\xb5\xd0\xbb\xd1\x8f \xd0\xb2\xd1\x8b\xd1\x88\xd0\xb5"' | |||
|
79 | 79 | msgid "Tag: " |
|
80 | 80 | msgstr "Тег: " |
|
81 | 81 | |
|
82 |
#: templates/boards/posting_general.html:3 |
|
|
83 |
#: templates/boards/posting_general.html: |
|
|
82 | #: templates/boards/posting_general.html:43 | |
|
83 | #: templates/boards/posting_general.html:99 templates/boards/thread.html:27 | |
|
84 | 84 | #: templates/boards/rss/post.html:5 |
|
85 | 85 | msgid "Post image" |
|
86 | 86 | msgstr "Изображение сообщения" |
|
87 | 87 | |
|
88 |
#: templates/boards/posting_general.html: |
|
|
88 | #: templates/boards/posting_general.html:56 | |
|
89 | 89 | msgid "Reply" |
|
90 | 90 | msgstr "Ответ" |
|
91 | 91 | |
|
92 |
#: templates/boards/posting_general.html: |
|
|
92 | #: templates/boards/posting_general.html:61 templates/boards/thread.html:45 | |
|
93 | 93 | msgid "Delete" |
|
94 | 94 | msgstr "Удалить" |
|
95 | 95 | |
|
96 |
#: templates/boards/posting_general.html:6 |
|
|
96 | #: templates/boards/posting_general.html:64 templates/boards/thread.html:48 | |
|
97 | msgid "Ban IP" | |
|
98 | msgstr "Заблокировать IP" | |
|
99 | ||
|
100 | #: templates/boards/posting_general.html:73 templates/boards/thread.html:112 | |
|
97 | 101 | msgid "replies" |
|
98 | 102 | msgstr "ответов" |
|
99 | 103 | |
|
100 |
#: templates/boards/posting_general.html: |
|
|
104 | #: templates/boards/posting_general.html:74 templates/boards/thread.html:113 | |
|
101 | 105 | msgid "images" |
|
102 | 106 | msgstr "изображений" |
|
103 | 107 | |
|
104 |
#: templates/boards/posting_general.html: |
|
|
105 |
#: templates/boards/posting_general.html:1 |
|
|
108 | #: templates/boards/posting_general.html:76 | |
|
109 | #: templates/boards/posting_general.html:149 templates/boards/tags.html:7 | |
|
106 | 110 | #: templates/boards/thread.html:58 templates/boards/rss/post.html:10 |
|
107 | 111 | msgid "Tags" |
|
108 | 112 | msgstr "Теги" |
|
109 | 113 | |
|
110 |
#: templates/boards/posting_general.html:1 |
|
|
114 | #: templates/boards/posting_general.html:125 | |
|
111 | 115 | msgid "No threads exist. Create the first one!" |
|
112 | 116 | msgstr "Нет тем. Создайте первую!" |
|
113 | 117 | |
|
114 |
#: templates/boards/posting_general.html:1 |
|
|
118 | #: templates/boards/posting_general.html:131 | |
|
115 | 119 | msgid "Create new thread" |
|
116 | 120 | msgstr "Создать новую тему" |
|
117 | 121 | |
|
118 |
#: templates/boards/posting_general.html:1 |
|
|
122 | #: templates/boards/posting_general.html:134 templates/boards/thread.html:77 | |
|
119 | 123 | msgid "Title" |
|
120 | 124 | msgstr "Заголовок" |
|
121 | 125 | |
|
122 |
#: templates/boards/posting_general.html:1 |
|
|
126 | #: templates/boards/posting_general.html:139 templates/boards/thread.html:82 | |
|
123 | 127 | msgid "Text" |
|
124 | 128 | msgstr "Текст" |
|
125 | 129 | |
|
126 |
#: templates/boards/posting_general.html:1 |
|
|
130 | #: templates/boards/posting_general.html:144 templates/boards/thread.html:87 | |
|
127 | 131 | msgid "Image" |
|
128 | 132 | msgstr "Изображение" |
|
129 | 133 | |
|
130 |
#: templates/boards/posting_general.html:1 |
|
|
134 | #: templates/boards/posting_general.html:162 templates/boards/thread.html:101 | |
|
131 | 135 | msgid "Post" |
|
132 | 136 | msgstr "Отправить" |
|
133 | 137 | |
|
134 |
#: templates/boards/posting_general.html:1 |
|
|
138 | #: templates/boards/posting_general.html:164 | |
|
135 | 139 | msgid "Tags must be delimited by spaces. Text or image is required." |
|
136 | 140 | msgstr "" |
|
137 | 141 | "Теги должны быть разделены пробелами. Текст или изображение обязательны." |
|
138 | 142 | |
|
139 |
#: templates/boards/posting_general.html:1 |
|
|
143 | #: templates/boards/posting_general.html:167 templates/boards/thread.html:103 | |
|
140 | 144 | msgid "Text syntax" |
|
141 | 145 | msgstr "Синтаксис текста" |
|
142 | 146 | |
|
143 |
#: templates/boards/posting_general.html:1 |
|
|
147 | #: templates/boards/posting_general.html:177 | |
|
144 | 148 | msgid "Pages:" |
|
145 | 149 | msgstr "Страницы: " |
|
146 | 150 | |
|
147 |
#: templates/boards/settings.html:1 |
|
|
151 | #: templates/boards/settings.html:13 | |
|
148 | 152 | msgid "User:" |
|
149 | 153 | msgstr "Пользователь:" |
|
150 | 154 | |
|
151 |
#: templates/boards/settings.html:1 |
|
|
155 | #: templates/boards/settings.html:15 | |
|
152 | 156 | msgid "You are moderator." |
|
153 | 157 | msgstr "Вы модератор." |
|
154 | 158 | |
|
155 |
#: templates/boards/settings.html: |
|
|
159 | #: templates/boards/settings.html:18 | |
|
160 | msgid "Posts:" | |
|
161 | msgstr "Сообщений:" | |
|
162 | ||
|
163 | #: templates/boards/settings.html:23 | |
|
156 | 164 | msgid "Theme" |
|
157 | 165 | msgstr "Тема" |
|
158 | 166 | |
|
159 |
#: templates/boards/settings.html:3 |
|
|
167 | #: templates/boards/settings.html:39 | |
|
160 | 168 | msgid "Save" |
|
161 | 169 | msgstr "Сохранить" |
|
162 | 170 | |
@@ -164,22 +172,10 b' msgstr "\xd0\xa1\xd0\xbe\xd1\x85\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb8\xd1\x82\xd1\x8c"' | |||
|
164 | 172 | msgid "threads" |
|
165 | 173 | msgstr "тем" |
|
166 | 174 | |
|
167 | #: templates/boards/tags.html:20 | |
|
168 | msgid "Remove" | |
|
169 | msgstr "Удалить" | |
|
170 | ||
|
171 | #: templates/boards/tags.html:23 | |
|
172 | msgid "Add" | |
|
173 | msgstr "Добавить" | |
|
174 | ||
|
175 | 175 | #: templates/boards/tags.html:28 |
|
176 | 176 | msgid "No tags found." |
|
177 | 177 | msgstr "Теги не найдены." |
|
178 | 178 | |
|
179 | #: templates/boards/thread.html:48 | |
|
180 | msgid "Ban IP" | |
|
181 | msgstr "Заблокировать IP" | |
|
182 | ||
|
183 | 179 | #: templates/boards/thread.html:74 |
|
184 | 180 | msgid "Reply to thread" |
|
185 | 181 | msgstr "Ответить в тему" |
@@ -192,7 +188,7 b' msgstr "\xd0\x9f\xd0\xbe\xd1\x81\xd0\xbb\xd0\xb5\xd0\xb4\xd0\xbd\xd0\xb5\xd0\xb5 \xd0\xbe\xd0\xb1\xd0\xbd\xd0\xbe\xd0\xb2\xd0\xbb\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5: "' | |||
|
192 | 188 | msgid "Banned" |
|
193 | 189 | msgstr "Заблокирован" |
|
194 | 190 | |
|
195 |
#: templates/boards/staticpages/banned.html:1 |
|
|
191 | #: templates/boards/staticpages/banned.html:11 | |
|
196 | 192 | msgid "Your IP address has been banned. Contact the administrator" |
|
197 | 193 | msgstr "Ваш IP адрес был заблокирован. Свяжитесь с администратором" |
|
198 | 194 | |
@@ -229,6 +225,12 b' msgstr "\xd0\xa6\xd0\xb8\xd1\x82\xd0\xb0\xd1\x82\xd0\xb0"' | |||
|
229 | 225 | msgid "Link to a post" |
|
230 | 226 | msgstr "Ссылка на сообщение" |
|
231 | 227 | |
|
228 | #~ msgid "Remove" | |
|
229 | #~ msgstr "Удалить" | |
|
230 | ||
|
231 | #~ msgid "Add" | |
|
232 | #~ msgstr "Добавить" | |
|
233 | ||
|
232 | 234 | #~ msgid "Basic markdown syntax." |
|
233 | 235 | #~ msgstr "Базовый синтаксис markdown." |
|
234 | 236 |
@@ -33,6 +33,7 b' RANK_USER = 100' | |||
|
33 | 33 | |
|
34 | 34 | |
|
35 | 35 | class PostManager(models.Manager): |
|
36 | ||
|
36 | 37 | def create_post(self, title, text, image=None, thread=None, |
|
37 | 38 | ip=NO_IP, tags=None, user=None): |
|
38 | 39 | post = self.create(title=title, |
@@ -306,6 +307,9 b' class User(models.Model):' | |||
|
306 | 307 | |
|
307 | 308 | return tags |
|
308 | 309 | |
|
310 | def get_post_count(self): | |
|
311 | return Post.objects.filter(user=self).count() | |
|
312 | ||
|
309 | 313 | def __unicode__(self): |
|
310 | 314 | return self.user_id + '(' + str(self.rank) + ')' |
|
311 | 315 |
@@ -9,10 +9,13 b'' | |||
|
9 | 9 | {% block content %} |
|
10 | 10 | |
|
11 | 11 | <div class="post"> |
|
12 | <p> | |
|
12 | 13 | {% trans 'User:' %} <b>{{ user.user_id }}</b>. |
|
13 | 14 | {% if user.is_moderator %} |
|
14 | 15 | {% trans 'You are moderator.' %} |
|
15 | 16 | {% endif %} |
|
17 | </p> | |
|
18 | <p>{% trans 'Posts:' %} {{ user.get_post_count }}</p> | |
|
16 | 19 | </div> |
|
17 | 20 | |
|
18 | 21 | <div class="post-form-w"> |
@@ -86,7 +86,7 b' def _new_post(request, form, thread_id=b' | |||
|
86 | 86 | get_object_or_404(Post, id=thread_id) |
|
87 | 87 | post = Post.objects.create_post(title=title, text=text, ip=ip, |
|
88 | 88 | thread=op, image=image, |
|
89 | tags=tags) | |
|
89 | tags=tags, user=_get_user(request)) | |
|
90 | 90 | |
|
91 | 91 | thread_to_show = (post.id if new_thread else thread_id) |
|
92 | 92 |
General Comments 0
You need to be logged in to leave comments.
Login now