##// END OF EJS Templates
Added error 404 page
neko259 -
r130:2cca92a8 default
parent child Browse files
Show More
1 NO CONTENT: new file 100644, binary diff hidden
NO CONTENT: new file 100644, binary diff hidden
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-27 23:51+0300\n"
10 "POT-Creation-Date: 2013-08-30 18:54+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"
@@ -18,6 +18,14 b' msgstr ""'
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
20
20
21 #: templates/boards/404.html:6
22 msgid "Not found"
23 msgstr "Не найдено"
24
25 #: templates/boards/404.html:12
26 msgid "This page does not exist"
27 msgstr "Этой страницы не существует"
28
21 #: templates/boards/authors.html:6
29 #: templates/boards/authors.html:6
22 msgid "Authors"
30 msgid "Authors"
23 msgstr "Авторы"
31 msgstr "Авторы"
@@ -36,25 +44,25 b' msgstr "\xd0\xa0\xd0\xb5\xd0\xbf\xd0\xbe\xd0\xb7\xd0\xb8\xd1\x82\xd0\xbe\xd1\x80\xd0\xb8\xd0\xb9"'
36
44
37 #: templates/boards/banned.html:6
45 #: templates/boards/banned.html:6
38 msgid "Banned"
46 msgid "Banned"
39 msgstr ""
47 msgstr "Заблокирован"
40
48
41 #: templates/boards/banned.html:11
49 #: templates/boards/banned.html:11
42 msgid "Your IP address has been banned. Contact the administrator"
50 msgid "Your IP address has been banned. Contact the administrator"
43 msgstr ""
51 msgstr "Ваш IP адрес был заблокирован. Свяжитесь с администратором"
44
52
45 #: templates/boards/base.html:12
53 #: templates/boards/base.html:12
46 msgid "Feed"
54 msgid "Feed"
47 msgstr "Лента"
55 msgstr "Лента"
48
56
49 #: templates/boards/base.html:35
57 #: templates/boards/base.html:36
50 msgid "All threads"
58 msgid "All threads"
51 msgstr "Все темы"
59 msgstr "Все темы"
52
60
53 #: templates/boards/base.html:41
61 #: templates/boards/base.html:42
54 msgid "Settings"
62 msgid "Settings"
55 msgstr "Настройки"
63 msgstr "Настройки"
56
64
57 #: templates/boards/base.html:49
65 #: templates/boards/base.html:50
58 msgid "Up"
66 msgid "Up"
59 msgstr "Вверх"
67 msgstr "Вверх"
60
68
@@ -63,59 +71,59 b' msgid "Tag: "'
63 msgstr "Тег: "
71 msgstr "Тег: "
64
72
65 #: templates/boards/posting_general.html:35
73 #: templates/boards/posting_general.html:35
66 #: templates/boards/posting_general.html:79 templates/boards/thread.html:27
74 #: templates/boards/posting_general.html:81 templates/boards/thread.html:27
67 #: templates/boards/rss/post.html:5
75 #: templates/boards/rss/post.html:5
68 msgid "Post image"
76 msgid "Post image"
69 msgstr "Изображение сообщения"
77 msgstr "Изображение сообщения"
70
78
71 #: templates/boards/posting_general.html:46
79 #: templates/boards/posting_general.html:48
72 msgid "Reply"
80 msgid "Reply"
73 msgstr "Ответ"
81 msgstr "Ответ"
74
82
75 #: templates/boards/posting_general.html:53 templates/boards/thread.html:111
83 #: templates/boards/posting_general.html:55 templates/boards/thread.html:108
76 msgid "replies"
84 msgid "replies"
77 msgstr "ответов"
85 msgstr "ответов"
78
86
79 #: templates/boards/posting_general.html:54 templates/boards/thread.html:112
87 #: templates/boards/posting_general.html:56 templates/boards/thread.html:109
80 msgid "images"
88 msgid "images"
81 msgstr "изображений"
89 msgstr "изображений"
82
90
83 #: templates/boards/posting_general.html:56
91 #: templates/boards/posting_general.html:58
84 #: templates/boards/posting_general.html:127 templates/boards/thread.html:51
92 #: templates/boards/posting_general.html:131 templates/boards/thread.html:48
85 #: templates/boards/rss/post.html:10
93 #: templates/boards/rss/post.html:10
86 msgid "Tags"
94 msgid "Tags"
87 msgstr "Теги"
95 msgstr "Теги"
88
96
89 #: templates/boards/posting_general.html:109
97 #: templates/boards/posting_general.html:113
90 msgid "Create new thread"
98 msgid "Create new thread"
91 msgstr "Создать новую тему"
99 msgstr "Создать новую тему"
92
100
93 #: templates/boards/posting_general.html:112 templates/boards/thread.html:73
101 #: templates/boards/posting_general.html:116 templates/boards/thread.html:70
94 msgid "Title"
102 msgid "Title"
95 msgstr "Заголовок"
103 msgstr "Заголовок"
96
104
97 #: templates/boards/posting_general.html:117 templates/boards/thread.html:78
105 #: templates/boards/posting_general.html:121 templates/boards/thread.html:75
98 msgid "Text"
106 msgid "Text"
99 msgstr "Текст"
107 msgstr "Текст"
100
108
101 #: templates/boards/posting_general.html:122 templates/boards/thread.html:83
109 #: templates/boards/posting_general.html:126 templates/boards/thread.html:80
102 msgid "Image"
110 msgid "Image"
103 msgstr "Изображение"
111 msgstr "Изображение"
104
112
105 #: templates/boards/posting_general.html:137 templates/boards/thread.html:94
113 #: templates/boards/posting_general.html:141 templates/boards/thread.html:91
106 msgid "Post"
114 msgid "Post"
107 msgstr "Отправить"
115 msgstr "Отправить"
108
116
109 #: templates/boards/posting_general.html:139
117 #: templates/boards/posting_general.html:143
110 msgid "Tags must be delimited by spaces. Text or image is required."
118 msgid "Tags must be delimited by spaces. Text or image is required."
111 msgstr ""
119 msgstr ""
112 "Теги должны быть разделены пробелами. Текст или изображение обязательны."
120 "Теги должны быть разделены пробелами. Текст или изображение обязательны."
113
121
114 #: templates/boards/posting_general.html:142 templates/boards/thread.html:96
122 #: templates/boards/posting_general.html:146 templates/boards/thread.html:93
115 msgid "Basic markdown syntax."
123 msgid "Basic markdown syntax."
116 msgstr "Базовый синтаксис markdown."
124 msgstr "Базовый синтаксис markdown."
117
125
118 #: templates/boards/posting_general.html:152
126 #: templates/boards/posting_general.html:156
119 msgid "Pages:"
127 msgid "Pages:"
120 msgstr "Страницы: "
128 msgstr "Страницы: "
121
129
@@ -131,38 +139,37 b' msgstr "\xd0\xa1\xd0\xbe\xd1\x85\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb8\xd1\x82\xd1\x8c"'
131 msgid "tags"
139 msgid "tags"
132 msgstr "тегов"
140 msgstr "тегов"
133
141
134 #: templates/boards/thread.html:39
142 #: templates/boards/thread.html:67
135 msgid "Get!"
136 msgstr "Гет!"
137
138 #: templates/boards/thread.html:70
139 msgid "Reply to thread"
143 msgid "Reply to thread"
140 msgstr "Ответить в тему"
144 msgstr "Ответить в тему"
141
145
142 #: templates/boards/thread.html:97
146 #: templates/boards/thread.html:94
143 msgid "Example: "
147 msgid "Example: "
144 msgstr "Пример: "
148 msgstr "Пример: "
145
149
146 #: templates/boards/thread.html:97
150 #: templates/boards/thread.html:94
147 msgid "italic"
151 msgid "italic"
148 msgstr "курсив"
152 msgstr "курсив"
149
153
150 #: templates/boards/thread.html:98
154 #: templates/boards/thread.html:95
151 msgid "bold"
155 msgid "bold"
152 msgstr "полужирный"
156 msgstr "полужирный"
153
157
154 #: templates/boards/thread.html:99
158 #: templates/boards/thread.html:96
155 msgid "Quotes can be inserted with"
159 msgid "Quotes can be inserted with"
156 msgstr "Цитаты могут быть вставлены при помощи"
160 msgstr "Цитаты могут быть вставлены при помощи"
157
161
158 #: templates/boards/thread.html:100
162 #: templates/boards/thread.html:97
159 msgid "Links to answers can be inserted with"
163 msgid "Links to answers can be inserted with"
160 msgstr "Ссылки на ответы могут быть вставлены с помощью"
164 msgstr "Ссылки на ответы могут быть вставлены с помощью"
161
165
162 #: templates/boards/thread.html:113
166 #: templates/boards/thread.html:110
163 msgid "Last update: "
167 msgid "Last update: "
164 msgstr "Последнее обновление: "
168 msgstr "Последнее обновление: "
165
169
170 #~ msgid "Get!"
171 #~ msgstr "Гет!"
172
166 #~ msgid "View"
173 #~ msgid "View"
167 #~ msgstr "Просмотр"
174 #~ msgstr "Просмотр"
168
175
@@ -3,28 +3,12 b''
3 {% load i18n %}
3 {% load i18n %}
4
4
5 {% block head %}
5 {% block head %}
6 <title>{% trans "Authors" %}</title>
6 <title>{% trans "Not found" %}</title>
7 {% endblock %}
7 {% endblock %}
8
8
9 {% block content %}
9 {% block content %}
10 <div class="post">
10 <div class="post">
11 <h2>Authors</h2>
11 <p><img src="{{ STATIC_URL }}images/404.png" width="200" /></p>
12 {% for nick, values in authors.items %}
12 <p>{% trans 'This page does not exist' %}</p>
13 <p>
14 <b>{{ nick }}</b> ({{ values.name }}):
15 {% for value in values.contacts %}
16 <a href="mailto:{{ value }}">{{ value }}</a>
17 {% endfor %} -
18 {% for role in values.roles %}
19 {% trans role %}
20 {% endfor %}
21 </p>
22 {% endfor %}
23 <br />
24 <p>{% trans "Distributed under the" %}
25 <a href="http://www.gnu.org/licenses/gpl.html" >GNU GPLv3</a>
26 {% trans "license" %}</p>
27 <p><a href="https://bitbucket.org/neko259/neboard">
28 {% trans "Repository" %}</a></p>
29 </div>
13 </div>
30 {% endblock %} No newline at end of file
14 {% endblock %}
@@ -231,6 +231,11 b' def you_are_banned(request):'
231 return render(request, 'boards/banned.html', context)
231 return render(request, 'boards/banned.html', context)
232
232
233
233
234 def page_404(request):
235 context = _init_default_context(request)
236 return render(request, 'boards/404.html', context)
237
238
234 def _get_theme(request):
239 def _get_theme(request):
235 """Get user's CSS theme"""
240 """Get user's CSS theme"""
236
241
@@ -20,4 +20,4 b" urlpatterns = patterns('',"
20 url(r'^', include('boards.urls')),
20 url(r'^', include('boards.urls')),
21 ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
21 ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
22
22
23
23 handler404 = 'boards.views.page_404'
General Comments 0
You need to be logged in to leave comments. Login now