django-rosetta/rosetta/urls.py
Virgil Dupras 3ebed99ac2 Extracted the "reflang" feature and applied it on its original commit.
I extracted the minimal feature set I could so that integration with newer
upstream commits are easier.
2013-01-29 15:35:11 -05:00

9 lines
474 B
Python

from django.conf.urls.defaults import url, patterns
urlpatterns = patterns('rosetta.views',
url(r'^$', 'home', name='rosetta-home'),
url(r'^pick/$', 'list_languages', name='rosetta-pick-file'),
url(r'^download/$', 'download_file', name='rosetta-download-file'),
url(r'^select/(?P<langid>[\w\-]+)/(?P<idx>\d+)/$', 'lang_sel', name='rosetta-language-selection'),
url(r'^select-ref/(?P<langid>[\w\-]+)/$', 'ref_sel', name='rosetta-reference-selection'),
)