def _update_context_with_user_info(context, user, user_certificate):
 user_fullname = user.profile.name
 context['username'] = user.username
 context['course_mode'] = user_certificate.mode
 context['accomplishment_user_id'] = user.id
 context['accomplishment_copy_name'] = user_fullname
 context['accomplishment_copy_username'] = user.username
 context['accomplishment_more_title'] = _("More Information About {user_name}'s Certificate:").format(user_name=user_fullname)
 context['accomplishment_banner_opening'] = _('{fullname}, you earned a certificate!').format(fullname=user_fullname)
 context['accomplishment_banner_congrats'] = _('Congratulations! This page summarizes what you accomplished. Show it off to family, friends, and colleagues in your social and professional networks.')
 context['accomplishment_copy_more_about'] = _("More about {fullname}'s accomplishment").format(fullname=user_fullname)

def _update_context_with_user_info ( context , user , user_certificate ) : user_fullname = user . profile . name context [ 'username' ] = user . username context [ 'course_mode' ] = user_certificate . mode context [ 'accomplishment_user_id' ] = user . id context [ 'accomplishment_copy_name' ] = user_fullname context [ 'accomplishment_copy_username' ] = user . username context [ 'accomplishment_more_title' ] = _ ( "More Information About {user_name}'s Certificate:" ) . format ( user_name = user_fullname ) context [ 'accomplishment_banner_opening' ] = _ ( '{fullname}, you earned a certificate!' ) . format ( fullname = user_fullname ) context [ 'accomplishment_banner_congrats' ] = _ ( 'Congratulations! This page summarizes what you accomplished. Show it off to family, friends, and colleagues in your social and professional networks.' ) context [ 'accomplishment_copy_more_about' ] = _ ( "More about {fullname}'s accomplishment" ) . format ( fullname = user_fullname )
updates context dictionary with user related info .