1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

Added i18n form login and myhome page

This commit is contained in:
zhengxie
2012-10-26 19:15:52 +08:00
parent 0106d08911
commit f76f396937
26 changed files with 468 additions and 129 deletions

13
urls.py
View File

@@ -74,7 +74,8 @@ urlpatterns = patterns('',
(r'^pdf_full_view/$', pdf_full_view),
url(r'^repo/(?P<repo_id>[^/]+)/(?P<obj_id>[^/]+)/$', repo_access_file, name='repo_access_file'),
(r'^pubinfo/$', pubinfo),
(r'^pubinfo/$', pubinfo),
url(r'^i18n/$', i18n, name='i18n'),
(r'^download/repo/$', repo_download),
(r'^file/move/get_subdir/$', get_subdir),
(r'^file/move/$', file_move),
@@ -125,3 +126,13 @@ else:
url(r'^home/public/$', public_home, name='public_home'),
)
# i18n in javascript
js_info_dict = {
'domain': 'djangojs',
'packages': (
'seahub.group',
),
}
urlpatterns += patterns('',
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
)