Skip to content

Commit

Permalink
Redirect /i18n to /r/r18n
Browse files Browse the repository at this point in the history
  • Loading branch information
kemitche committed Nov 14, 2011
1 parent cd25825 commit 7bceffa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion r2/r2/config/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def make_map(global_conf={}, app_conf={}):

mc('/awards', controller='front', action='awards')

mc('/i18n', controller='feedback', action='i18n')
mc('/i18n', controller='redirect', action='redirect',
dest='http://www.reddit.com/r/r18n')
mc('/feedback', controller='feedback', action='feedback')
mc('/ad_inq', controller='feedback', action='ad_inq')

Expand Down
6 changes: 0 additions & 6 deletions r2/r2/controllers/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,3 @@ def GET_feedback(self):
return FormPage('feedback',
content = FeedbackBlurb(),
loginbox = False).render()

def GET_i18n(self):
title = _("help translate reddit into your language")
return FormPage(_('help translate'),
content = Feedback(title=title, action='i18n'),
loginbox = False).render()

0 comments on commit 7bceffa

Please sign in to comment.