def _format_row_with_out_of_dateness(readout_locale, eng_slug, eng_title, slug, title, visits, significance, needs_review):
 if slug:
  locale = readout_locale
  if needs_review:
   (status, view_name, status_class) = REVIEW_STATUSES[needs_review]
  else:
   (status, view_name, status_class) = SIGNIFICANCE_STATUSES.get(significance, REVIEW_STATUSES[needs_review])
  status_url = (reverse(view_name, args=[slug], locale=locale) if view_name else '')
 else:
  slug = eng_slug
  title = eng_title
  locale = settings.WIKI_DEFAULT_LANGUAGE
  status = _(u'Translation Needed')
  status_url = reverse('wiki.translate', args=[slug], locale=readout_locale)
  status_class = 'untranslated'
 return dict(title=title, url=reverse('wiki.document', args=[slug], locale=locale), visits=visits, status=status, status_class=status_class, status_url=status_url)

def _format_row_with_out_of_dateness ( readout_locale , eng_slug , eng_title , slug , title , visits , significance , needs_review ) : if slug : locale = readout_locale if needs_review : ( status , view_name , status_class ) = REVIEW_STATUSES [ needs_review ] else : ( status , view_name , status_class ) = SIGNIFICANCE_STATUSES . get ( significance , REVIEW_STATUSES [ needs_review ] ) status_url = ( reverse ( view_name , args = [ slug ] , locale = locale ) if view_name else '' ) else : slug = eng_slug title = eng_title locale = settings . WIKI_DEFAULT_LANGUAGE status = _ ( u'Translation Needed' ) status_url = reverse ( 'wiki.translate' , args = [ slug ] , locale = readout_locale ) status_class = 'untranslated' return dict ( title = title , url = reverse ( 'wiki.document' , args = [ slug ] , locale = locale ) , visits = visits , status = status , status_class = status_class , status_url = status_url )
format a row for a readout that has the traffic-light-style categorization of how seriously out of date a translation is .