[ 
https://issues.apache.org/jira/browse/WICKET-6580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16596552#comment-16596552
 ] 

ASF subversion and git services commented on WICKET-6580:
---------------------------------------------------------

Commit 8f63eeee3256abee2914aad7bdf57f2624a23cbf in wicket's branch 
refs/heads/master from [~svenmeier]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=8f63eee ]

WICKET-6580 use standard units KB,MB,GB,TB


> org.apache.wicket.util.lang.Bytes - toString()
> ----------------------------------------------
>
>                 Key: WICKET-6580
>                 URL: https://issues.apache.org/jira/browse/WICKET-6580
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 7.9.0
>            Reporter: Peter Bozik
>            Priority: Major
>
> It is not possible to override how the Bytes class is translated to String.
> we would like to override wicket message *uploadSingleFileTooLarge* about big 
> file and we would like to use form field ${fileMaxSize}. Our max limit is 
> specified in megabytes and as it is specified in wiki 
> ([https://en.wikipedia.org/wiki/Megabyte)] - the recommended unit symbol is 
> *MB*, not *M*
> we know, we can change our message to ...${fileMaxSize}B ... but then in case 
> of value in bytes we would get ... 10 bytesB ...
>  
> also there is no space between value and units except bytes so we would like 
> to add it there so we would get e.g. (10 MB, 10 KB, 10 bytes). Current state 
> is (10M, 10K, 10 bytes)
>  
> thank you for consideration of this kind of improvement



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to