@require_POST
@login_required
def watch_locale(request):
 locale = request.LANGUAGE_CODE
 if (request.POST.get('watch') == 'yes'):
  NewPostInLocaleEvent.notify(request.user, locale=locale)
  NewThreadInLocaleEvent.notify(request.user, locale=locale)
  statsd.incr('kbforums.watches.locale')
 else:
  NewPostInLocaleEvent.stop_notifying(request.user, locale=locale)
  NewThreadInLocaleEvent.stop_notifying(request.user, locale=locale)
 return HttpResponseRedirect((get_next_url(request) or reverse('home')))

@ require_POST @ login_required def watch_locale ( request ) : locale = request . LANGUAGE_CODE if ( request . POST . get ( 'watch' ) == 'yes' ) : NewPostInLocaleEvent . notify ( request . user , locale = locale ) NewThreadInLocaleEvent . notify ( request . user , locale = locale ) statsd . incr ( 'kbforums.watches.locale' ) else : NewPostInLocaleEvent . stop_notifying ( request . user , locale = locale ) NewThreadInLocaleEvent . stop_notifying ( request . user , locale = locale ) return HttpResponseRedirect ( ( get_next_url ( request ) or reverse ( 'home' ) ) )
start watching a locale for revisions ready for review .