On Thu, 30 Jun 2022 17:39:28 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
>> I think we should follow the current format for the time being and show the >> file size similar to how its shown in native tools. >> >> In Windows Explorer, 0 bytes are shown as 0 KB, 1 byte is 1 KB and so on… >> However, JFileChooser shows these as 0 bytes and 1 bytes in both Java/Metal >> and Windows L&Fs. >> >> On macOS, Finder shows the size as "Zero bytes" and "1 byte" >> correspondingly. JFileChooser in Aqua L&F doesn't show the size. > >> It is introduced in JDK12. If this has to be backported to 8, that's not an >> option. > > Is this fix going to be backported to 11 and 8? > The code should employ `MessageFormat`. You only need to modify the English > resource bundles, i.e., `basic.properties`, the rest will be taken care of by > the g11n process. Ok, will update in basic.properties and check. ------------- PR: https://git.openjdk.org/jdk/pull/9327