def get_detail(request, project, subproject, checksum):
 subproject = get_subproject(request, project, subproject)
 units = Unit.objects.filter(checksum=checksum, translation__subproject=subproject)
 try:
  source = units[0].source_info
 except IndexError:
  raise Http404('Non existing unit!')
 check_flags = [(CHECKS[x].ignore_string, CHECKS[x].name) for x in CHECKS]
 extra_flags = [(x, EXTRA_FLAGS[x]) for x in EXTRA_FLAGS]
 return render(request, 'js/detail.html', {'units': units, 'source': source, 'project': subproject.project, 'next': request.GET.get('next', ''), 'priority_form': PriorityForm(initial={'priority': source.priority}), 'check_flags_form': CheckFlagsForm(initial={'flags': source.check_flags}), 'screenshot_form': ScreenshotUploadForm(instance=source), 'extra_flags': extra_flags, 'check_flags': check_flags})

def get_detail ( request , project , subproject , checksum ) : subproject = get_subproject ( request , project , subproject ) units = Unit . objects . filter ( checksum = checksum , translation__subproject = subproject ) try : source = units [ 0 ] . source_info except IndexError : raise Http404 ( 'Non existing unit!' ) check_flags = [ ( CHECKS [ x ] . ignore_string , CHECKS [ x ] . name ) for x in CHECKS ] extra_flags = [ ( x , EXTRA_FLAGS [ x ] ) for x in EXTRA_FLAGS ] return render ( request , 'js/detail.html' , { 'units' : units , 'source' : source , 'project' : subproject . project , 'next' : request . GET . get ( 'next' , '' ) , 'priority_form' : PriorityForm ( initial = { 'priority' : source . priority } ) , 'check_flags_form' : CheckFlagsForm ( initial = { 'flags' : source . check_flags } ) , 'screenshot_form' : ScreenshotUploadForm ( instance = source ) , 'extra_flags' : extra_flags , 'check_flags' : check_flags } )
returns source translation detail in all languages .