Ticket #5695: admin-file-widget.diff

File admin-file-widget.diff, 689 bytes (added by Petr Marhoun <petr.marhoun@…>, 17 years ago)
  • django/contrib/admin/widgets.py

    === modified file 'django/contrib/admin/widgets.py'
     
    7171        from django.conf import settings
    7272        output = []
    7373        if value:
    74             output.append('Currently: <a target="_blank" href="%s%s">%s</a> <br>Change: ' % (settings.MEDIA_URL, value, value))
     74            output.append('%s <a target="_blank" href="%s%s">%s</a> <br />%s ' % \
     75                (_('Currently:'), settings.MEDIA_URL, value, value, _('Change:')))
    7576        output.append(super(AdminFileWidget, self).render(name, value, attrs))
    7677        return u''.join(output)
    7778
Back to Top