Ticket #1051: gmg-mb-mib.patch

File gmg-mb-mib.patch, 529 bytes (added by anongoblin, 10 years ago)

Small patch replacing "mb" with "MiB" in the upload form

  • mediagoblin/submit/forms.py

    diff --git a/mediagoblin/submit/forms.py b/mediagoblin/submit/forms.py
    index 6c0e8e9..f2ec8ad 100644
    a b def get_submit_start_form(form, **kwargs):  
    2727    max_file_size = kwargs.get('max_file_size')
    2828    desc = None
    2929    if max_file_size:
    30         desc = _('Max file size: {0} mb'.format(max_file_size))
     30        desc = _('Max file size: {0} MiB'.format(max_file_size))
    3131
    3232    class SubmitStartForm(wtforms.Form):
    3333        file = wtforms.FileField(