[wp-meta] [Making WordPress.org] #5221: Plugin directory: i18n of max file size for upload

Making WordPress.org noreply at wordpress.org
Tue May 19 16:36:12 UTC 2020


#5221: Plugin directory: i18n of max file size for upload
------------------------------+---------------------
 Reporter:  tobifjellner      |       Owner:  (none)
     Type:  defect            |      Status:  new
 Priority:  normal            |   Milestone:
Component:  Plugin Directory  |  Resolution:
 Keywords:                    |
------------------------------+---------------------

Comment (by Otto42):

 No need to be complicated about it. Do what core does, and use
 `size_format()`. See wp-admin/includes/media.php:

 `printf( __( 'Maximum upload file size: %s.' ), esc_html( size_format(
 $max_upload_size ) ) );`

 This gets its translations and such using number_format_i18n.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5221#comment:1>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list