##// END OF EJS Templates
Added translation for javascript. This fixes #36
neko259 -
r122:3928e034 default
parent child Browse files
Show More
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-04 14:04+0300\n"
10 "POT-Creation-Date: 2013-08-27 22:50+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"
@@ -34,19 +34,27 b' msgstr "\xd0\xbb\xd0\xb8\xd1\x86\xd0\xb5\xd0\xbd\xd0\xb7\xd0\xb8\xd0\xb5\xd0\xb9"'
34 msgid "Repository"
34 msgid "Repository"
35 msgstr "Репозиторий"
35 msgstr "Репозиторий"
36
36
37 #: templates/boards/banned.html:6
38 msgid "Banned"
39 msgstr ""
40
41 #: templates/boards/banned.html:11
42 msgid "Your IP address has been banned. Contact the administrator"
43 msgstr ""
44
37 #: templates/boards/base.html:12
45 #: templates/boards/base.html:12
38 msgid "Feed"
46 msgid "Feed"
39 msgstr "Лента"
47 msgstr "Лента"
40
48
41 #: templates/boards/base.html:31
49 #: templates/boards/base.html:35
42 msgid "All threads"
50 msgid "All threads"
43 msgstr "Все темы"
51 msgstr "Все темы"
44
52
45 #: templates/boards/base.html:37
53 #: templates/boards/base.html:41
46 msgid "Settings"
54 msgid "Settings"
47 msgstr "Настройки"
55 msgstr "Настройки"
48
56
49 #: templates/boards/base.html:45
57 #: templates/boards/base.html:49
50 msgid "Up"
58 msgid "Up"
51 msgstr "Вверх"
59 msgstr "Вверх"
52
60
@@ -161,8 +169,8 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: "'
161 #~ msgid "gets"
169 #~ msgid "gets"
162 #~ msgstr "гетов"
170 #~ msgstr "гетов"
163
171
164 msgid "author"
172 #~ msgid "author"
165 msgstr "автор"
173 #~ msgstr "автор"
166
174
167 msgid "developer"
175 #~ msgid "developer"
168 msgstr "разработчик" No newline at end of file
176 #~ msgstr "разработчик" No newline at end of file
@@ -13,12 +13,16 b' function add_panel(after)'
13
13
14 tab = $('<input type="radio" class="image-mode-normal" name="image-mode" value="0" checked="checked"/>');
14 tab = $('<input type="radio" class="image-mode-normal" name="image-mode" value="0" checked="checked"/>');
15 tab.on("change", tab_handler);
15 tab.on("change", tab_handler);
16 tab = $('<label>Normal</label>').prepend(tab);
16
17 var label_normal = gettext('Normal');
18 tab = $('<label>' + label_normal + '</label>').prepend(tab);
17 tab_bar.append(tab);
19 tab_bar.append(tab);
18
20
19 tab = $('<input type="radio" class="image-mode-table" name="image-mode" value="1"/>');
21 tab = $('<input type="radio" class="image-mode-table" name="image-mode" value="1"/>');
20 tab.on("change", tab_handler);
22 tab.on("change", tab_handler);
21 tab = $('<label>Gallery</label>').prepend(tab);
23
24 var label_gallery = gettext('Gallery');
25 tab = $('<label>' + label_gallery + '</label>').prepend(tab);
22 tab_bar.append(tab);
26 tab_bar.append(tab);
23
27
24 tab_bar.insertAfter(nav_top);
28 tab_bar.insertAfter(nav_top);
@@ -21,6 +21,7 b''
21 <body>
21 <body>
22 <script src="{{ STATIC_URL }}js/jquery-2.0.1.min.js"></script>
22 <script src="{{ STATIC_URL }}js/jquery-2.0.1.min.js"></script>
23 <script src="{{ STATIC_URL }}js/jquery.fancybox.pack.js"></script>
23 <script src="{{ STATIC_URL }}js/jquery.fancybox.pack.js"></script>
24 <script type="text/javascript" src="{% url 'django.views.i18n.javascript_catalog' %}"></script>
24 <script src="{{ STATIC_URL }}js/main.js"></script>
25 <script src="{{ STATIC_URL }}js/main.js"></script>
25 <div id="admin_panel">
26 <div id="admin_panel">
26
27
@@ -2,6 +2,10 b' from django.conf.urls import patterns, u'
2 from boards import views
2 from boards import views
3 from boards.rss import AllThreadsFeed, TagThreadsFeed, ThreadPostsFeed
3 from boards.rss import AllThreadsFeed, TagThreadsFeed, ThreadPostsFeed
4
4
5 js_info_dict = {
6 'packages': ('boards',),
7 }
8
5 urlpatterns = patterns('',
9 urlpatterns = patterns('',
6
10
7 # /boards/
11 # /boards/
@@ -34,4 +38,6 b" urlpatterns = patterns('',"
34 url(r'^tag/(?P<tag_name>\w+)/rss/$', TagThreadsFeed()),
38 url(r'^tag/(?P<tag_name>\w+)/rss/$', TagThreadsFeed()),
35 url(r'^tag/(?P<tag_name>\w+)/page/(?P<page>\w+)/rss/$', TagThreadsFeed()),
39 url(r'^tag/(?P<tag_name>\w+)/page/(?P<page>\w+)/rss/$', TagThreadsFeed()),
36 url(r'^thread/(?P<post_id>\w+)/rss/$', ThreadPostsFeed()),
40 url(r'^thread/(?P<post_id>\w+)/rss/$', ThreadPostsFeed()),
41
42 url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
37 ) No newline at end of file
43 )
General Comments 0
You need to be logged in to leave comments. Login now