def get_permission_message(permission_code):
 default_message = _('Insufficient rights to access this directory.')
 return {'suggest': _('Insufficient rights to access suggestion mode.'), 'translate': _('Insufficient rights to access translation mode.'), 'review': _('Insufficient rights to access review mode.')}.get(permission_code, default_message)

def get_permission_message ( permission_code ) : default_message = _ ( 'Insufficient rights to access this directory.' ) return { 'suggest' : _ ( 'Insufficient rights to access suggestion mode.' ) , 'translate' : _ ( 'Insufficient rights to access translation mode.' ) , 'review' : _ ( 'Insufficient rights to access review mode.' ) } . get ( permission_code , default_message )
returns a human-readable message when permission_code is not met by the current context .