mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
Fix/peek/file size (#28051)
* [Peek] displaying file size in correct grammatical format * Update Directory.Packages.props * removed unnecessary file
This commit is contained in:
@@ -17,7 +17,9 @@ namespace Peek.Common.Helpers
|
|||||||
var resourceLoader = ResourceLoaderInstance.ResourceLoader;
|
var resourceLoader = ResourceLoaderInstance.ResourceLoader;
|
||||||
List<string> format = new List<string>
|
List<string> format = new List<string>
|
||||||
{
|
{
|
||||||
resourceLoader.GetString("ReadableString_ByteAbbreviationFormat"), // "B"
|
(bytes == 1) ?
|
||||||
|
resourceLoader.GetString("ReadableString_ByteAbbreviationFormat") : // "byte"
|
||||||
|
resourceLoader.GetString("ReadableString_BytesAbbreviationFormat"), // "bytes"
|
||||||
resourceLoader.GetString("ReadableString_KiloByteAbbreviationFormat"), // "KB"
|
resourceLoader.GetString("ReadableString_KiloByteAbbreviationFormat"), // "KB"
|
||||||
resourceLoader.GetString("ReadableString_MegaByteAbbreviationFormat"), // "MB"
|
resourceLoader.GetString("ReadableString_MegaByteAbbreviationFormat"), // "MB"
|
||||||
resourceLoader.GetString("ReadableString_GigaByteAbbreviationFormat"), // "GB"
|
resourceLoader.GetString("ReadableString_GigaByteAbbreviationFormat"), // "GB"
|
||||||
|
|||||||
@@ -154,7 +154,7 @@
|
|||||||
<comment>Date Modified label for the unsupported files view. {0} is the date.</comment>
|
<comment>Date Modified label for the unsupported files view. {0} is the date.</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="ReadableString_ByteAbbreviationFormat" xml:space="preserve">
|
<data name="ReadableString_ByteAbbreviationFormat" xml:space="preserve">
|
||||||
<value>{0} bytes</value>
|
<value>{0} byte</value>
|
||||||
<comment>Abbreviation for the size unit byte.</comment>
|
<comment>Abbreviation for the size unit byte.</comment>
|
||||||
</data>
|
</data>
|
||||||
<data name="ReadableString_KiloByteAbbreviationFormat" xml:space="preserve">
|
<data name="ReadableString_KiloByteAbbreviationFormat" xml:space="preserve">
|
||||||
@@ -233,4 +233,8 @@
|
|||||||
<value>{0} (extracted {1})</value>
|
<value>{0} (extracted {1})</value>
|
||||||
<comment>{0} is the size of the archive, {1} is the extracted size</comment>
|
<comment>{0} is the size of the archive, {1} is the extracted size</comment>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="ReadableString_BytesAbbreviationFormat" xml:space="preserve">
|
||||||
|
<value>{0} bytes</value>
|
||||||
|
<comment>Abbreviation for the size bytes</comment>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
||||||
Reference in New Issue
Block a user