def format_translation(logpath, log, pure_translate = False):
    """Turn a translated log JSON into a pretty string."""
    output = []
    if not pure_translate:
        output.append('\nLog: ' + logpath)

    if log['unrecognized']:
        output.append('\nFailed to recognize log. {}'.format(log['unrecognized']))
    elif not pure_translate and log['language'] == 'english':
        output.append('\nLog is already in English!')
    else:
        if not pure_translate:
            output.append('\nOriginal language: {}'.format(log['language']).title())
            output.append('\n---------------------------------------------------')
            output.append('\n')
        output.append(log['log'])

    if not pure_translate:
        output.append('\n')

    return ''.join(output)