##// END OF EJS Templates
Fixed style of 'no threads' text in the main page. Added translation for this string.
neko259 -
r143:d303170c 1.1
parent child Browse files
Show More
@@ -67,7 +67,6 b' class PostForm(forms.Form):'
67 self._errors['image'] = self.error_class([error_message])
67 self._errors['image'] = self.error_class([error_message])
68
68
69
69
70
71 class ThreadForm(PostForm):
70 class ThreadForm(PostForm):
72 regex_tags = re.compile(ur'^[\w\s\d]+$', re.UNICODE)
71 regex_tags = re.compile(ur'^[\w\s\d]+$', re.UNICODE)
73 tags = forms.CharField(max_length=100)
72 tags = forms.CharField(max_length=100)
1 NO CONTENT: modified file, binary diff hidden
NO CONTENT: modified file, binary diff hidden
@@ -7,7 +7,7 b' msgid ""'
7 msgstr ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "Report-Msgid-Bugs-To: \n"
9 "Report-Msgid-Bugs-To: \n"
10 "POT-Creation-Date: 2013-08-30 18:54+0300\n"
10 "POT-Creation-Date: 2013-09-06 21:15+0300\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -54,15 +54,15 b' msgstr "\xd0\x92\xd0\xb0\xd1\x88 IP \xd0\xb0\xd0\xb4\xd1\x80\xd0\xb5\xd1\x81 \xd0\xb1\xd1\x8b\xd0\xbb \xd0\xb7\xd0\xb0\xd0\xb1\xd0\xbb\xd0\xbe\xd0\xba\xd0\xb8\xd1\x80\xd0\xbe\xd0\xb2\xd0\xb0\xd0\xbd. \xd0\xa1\xd0\xb2\xd1\x8f\xd0\xb6\xd0\xb8\xd1\x82\xd0\xb5\xd1\x81\xd1\x8c \xd1\x81 \xd0\xb0\xd0\xb4\xd0\xbc\xd0\xb8\xd0\xbd\xd0\xb8\xd1\x81\xd1\x82\xd1\x80\xd0\xb0\xd1\x82\xd0\xbe\xd1\x80\xd0\xbe\xd0\xbc"'
54 msgid "Feed"
54 msgid "Feed"
55 msgstr "Лента"
55 msgstr "Лента"
56
56
57 #: templates/boards/base.html:36
57 #: templates/boards/base.html:29
58 msgid "All threads"
58 msgid "All threads"
59 msgstr "Все темы"
59 msgstr "Все темы"
60
60
61 #: templates/boards/base.html:42
61 #: templates/boards/base.html:35
62 msgid "Settings"
62 msgid "Settings"
63 msgstr "Настройки"
63 msgstr "Настройки"
64
64
65 #: templates/boards/base.html:50
65 #: templates/boards/base.html:43
66 msgid "Up"
66 msgid "Up"
67 msgstr "Вверх"
67 msgstr "Вверх"
68
68
@@ -71,7 +71,7 b' msgid "Tag: "'
71 msgstr "Тег: "
71 msgstr "Тег: "
72
72
73 #: templates/boards/posting_general.html:35
73 #: templates/boards/posting_general.html:35
74 #: templates/boards/posting_general.html:81 templates/boards/thread.html:27
74 #: templates/boards/posting_general.html:89 templates/boards/thread.html:27
75 #: templates/boards/rss/post.html:5
75 #: templates/boards/rss/post.html:5
76 msgid "Post image"
76 msgid "Post image"
77 msgstr "Изображение сообщения"
77 msgstr "Изображение сообщения"
@@ -80,54 +80,58 b' msgstr "\xd0\x98\xd0\xb7\xd0\xbe\xd0\xb1\xd1\x80\xd0\xb0\xd0\xb6\xd0\xb5\xd0\xbd\xd0\xb8\xd0\xb5 \xd1\x81\xd0\xbe\xd0\xbe\xd0\xb1\xd1\x89\xd0\xb5\xd0\xbd\xd0\xb8\xd1\x8f"'
80 msgid "Reply"
80 msgid "Reply"
81 msgstr "Ответ"
81 msgstr "Ответ"
82
82
83 #: templates/boards/posting_general.html:52 templates/boards/thread.html:49
83 #: templates/boards/posting_general.html:54 templates/boards/thread.html:46
84 msgid "Delete"
84 msgid "Delete"
85 msgstr "Удалить"
85 msgstr "Удалить"
86
86
87 #: templates/boards/posting_general.html:55 templates/boards/thread.html:108
87 #: templates/boards/posting_general.html:63 templates/boards/thread.html:113
88 msgid "replies"
88 msgid "replies"
89 msgstr "ответов"
89 msgstr "ответов"
90
90
91 #: templates/boards/posting_general.html:56 templates/boards/thread.html:109
91 #: templates/boards/posting_general.html:64 templates/boards/thread.html:114
92 msgid "images"
92 msgid "images"
93 msgstr "изображений"
93 msgstr "изображений"
94
94
95 #: templates/boards/posting_general.html:58
95 #: templates/boards/posting_general.html:66
96 #: templates/boards/posting_general.html:131 templates/boards/thread.html:48
96 #: templates/boards/posting_general.html:139 templates/boards/thread.html:56
97 #: templates/boards/rss/post.html:10
97 #: templates/boards/rss/post.html:10
98 msgid "Tags"
98 msgid "Tags"
99 msgstr "Теги"
99 msgstr "Теги"
100
100
101 #: templates/boards/posting_general.html:113
101 #: templates/boards/posting_general.html:115
102 msgid "No threads exist. Create the first one!"
103 msgstr "Нет тем. Создайте первую!"
104
105 #: templates/boards/posting_general.html:121
102 msgid "Create new thread"
106 msgid "Create new thread"
103 msgstr "Создать новую тему"
107 msgstr "Создать новую тему"
104
108
105 #: templates/boards/posting_general.html:116 templates/boards/thread.html:70
109 #: templates/boards/posting_general.html:124 templates/boards/thread.html:75
106 msgid "Title"
110 msgid "Title"
107 msgstr "Заголовок"
111 msgstr "Заголовок"
108
112
109 #: templates/boards/posting_general.html:121 templates/boards/thread.html:75
113 #: templates/boards/posting_general.html:129 templates/boards/thread.html:80
110 msgid "Text"
114 msgid "Text"
111 msgstr "Текст"
115 msgstr "Текст"
112
116
113 #: templates/boards/posting_general.html:126 templates/boards/thread.html:80
117 #: templates/boards/posting_general.html:134 templates/boards/thread.html:85
114 msgid "Image"
118 msgid "Image"
115 msgstr "Изображение"
119 msgstr "Изображение"
116
120
117 #: templates/boards/posting_general.html:141 templates/boards/thread.html:91
121 #: templates/boards/posting_general.html:149 templates/boards/thread.html:96
118 msgid "Post"
122 msgid "Post"
119 msgstr "Отправить"
123 msgstr "Отправить"
120
124
121 #: templates/boards/posting_general.html:143
125 #: templates/boards/posting_general.html:151
122 msgid "Tags must be delimited by spaces. Text or image is required."
126 msgid "Tags must be delimited by spaces. Text or image is required."
123 msgstr ""
127 msgstr ""
124 "Теги должны быть разделены пробелами. Текст или изображение обязательны."
128 "Теги должны быть разделены пробелами. Текст или изображение обязательны."
125
129
126 #: templates/boards/posting_general.html:146 templates/boards/thread.html:93
130 #: templates/boards/posting_general.html:154 templates/boards/thread.html:98
127 msgid "Basic markdown syntax."
131 msgid "Basic markdown syntax."
128 msgstr "Базовый синтаксис markdown."
132 msgstr "Базовый синтаксис markdown."
129
133
130 #: templates/boards/posting_general.html:156
134 #: templates/boards/posting_general.html:164
131 msgid "Pages:"
135 msgid "Pages:"
132 msgstr "Страницы: "
136 msgstr "Страницы: "
133
137
@@ -151,35 +155,31 b' msgstr "\xd0\xa1\xd0\xbe\xd1\x85\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb8\xd1\x82\xd1\x8c"'
151 msgid "tags"
155 msgid "tags"
152 msgstr "тегов"
156 msgstr "тегов"
153
157
154 #: templates/boards/thread.html:39
158 #: templates/boards/thread.html:72
155 msgid "Get!"
156 msgstr "Гет!"
157
158 #: templates/boards/thread.html:67
159 msgid "Reply to thread"
159 msgid "Reply to thread"
160 msgstr "Ответить в тему"
160 msgstr "Ответить в тему"
161
161
162 #: templates/boards/thread.html:94
162 #: templates/boards/thread.html:99
163 msgid "Example: "
163 msgid "Example: "
164 msgstr "Пример: "
164 msgstr "Пример: "
165
165
166 #: templates/boards/thread.html:94
166 #: templates/boards/thread.html:99
167 msgid "italic"
167 msgid "italic"
168 msgstr "курсив"
168 msgstr "курсив"
169
169
170 #: templates/boards/thread.html:95
170 #: templates/boards/thread.html:100
171 msgid "bold"
171 msgid "bold"
172 msgstr "полужирный"
172 msgstr "полужирный"
173
173
174 #: templates/boards/thread.html:96
174 #: templates/boards/thread.html:101
175 msgid "Quotes can be inserted with"
175 msgid "Quotes can be inserted with"
176 msgstr "Цитаты могут быть вставлены при помощи"
176 msgstr "Цитаты могут быть вставлены при помощи"
177
177
178 #: templates/boards/thread.html:97
178 #: templates/boards/thread.html:102
179 msgid "Links to answers can be inserted with"
179 msgid "Links to answers can be inserted with"
180 msgstr "Ссылки на ответы могут быть вставлены с помощью"
180 msgstr "Ссылки на ответы могут быть вставлены с помощью"
181
181
182 #: templates/boards/thread.html:110
182 #: templates/boards/thread.html:115
183 msgid "Last update: "
183 msgid "Last update: "
184 msgstr "Последнее обновление: "
184 msgstr "Последнее обновление: "
185
185
@@ -31,6 +31,7 b' RANK_ADMIN = 0'
31 RANK_MODERATOR = 10
31 RANK_MODERATOR = 10
32 RANK_USER = 100
32 RANK_USER = 100
33
33
34
34 class PostManager(models.Manager):
35 class PostManager(models.Manager):
35 def create_post(self, title, text, image=None, parent_id=NO_PARENT,
36 def create_post(self, title, text, image=None, parent_id=NO_PARENT,
36 ip=NO_IP, tags=None, user=None):
37 ip=NO_IP, tags=None, user=None):
@@ -111,8 +111,8 b''
111 </div>
111 </div>
112 {% endfor %}
112 {% endfor %}
113 {% else %}
113 {% else %}
114 No threads found.
114 <div class="post">
115 <hr />
115 {% trans 'No threads exist. Create the first one!' %}</div>
116 {% endif %}
116 {% endif %}
117
117
118 <form enctype="multipart/form-data" method="post">{% csrf_token %}
118 <form enctype="multipart/form-data" method="post">{% csrf_token %}
@@ -64,9 +64,6 b''
64 </div>
64 </div>
65 {% endfor %}
65 {% endfor %}
66 </div>
66 </div>
67 {% else %}
68 No thread found.
69 <hr />
70 {% endif %}
67 {% endif %}
71
68
72 <form id="form" enctype="multipart/form-data" method="post"
69 <form id="form" enctype="multipart/form-data" method="post"
General Comments 0
You need to be logged in to leave comments. Login now