Skip to content

Commit 17a1185

Browse files
authored
Fix string loading (#1144)
Add resources
1 parent 86e87f1 commit 17a1185

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Files/Strings/ru-RU/Resources.resw

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,4 +594,7 @@
594594
<data name="SettingsAboutOpenLogLocationButton.Content" xml:space="preserve">
595595
<value>Открыть расположение Лог файла</value>
596596
</data>
597+
<data name="ItemSizeBytes" xml:space="preserve">
598+
<value>байт</value>
599+
</data>
597600
</root>

Files/Strings/uk-UA/Resources.resw

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,4 +588,7 @@
588588
<data name="SettingsAboutOpenLogLocationButton.Content" xml:space="preserve">
589589
<value>Відкрити розташування Лог файлу</value>
590590
</data>
591+
<data name="ItemSizeBytes" xml:space="preserve">
592+
<value>байт</value>
593+
</data>
591594
</root>

Files/View Models/SelectedItemsPropertiesViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using Files.DataModels;
1+
using Files.DataModels;
22
using Files.Filesystem;
33
using GalaSoft.MvvmLight;
44
using Windows.UI.Xaml.Controls;
@@ -319,7 +319,7 @@ public async Task GetPropertiesAsync(CancellationTokenSource _tokenSource)
319319
ItemCreatedTimestamp = ListedItem.GetFriendlyDate(file.DateCreated);
320320
GetOtherPropeties(file.Properties);
321321
ItemsSize = ByteSizeLib.ByteSize.FromBytes(Item.FileSizeBytes).ToBinaryString()
322-
+ " (" + ByteSizeLib.ByteSize.FromBytes(Item.FileSizeBytes).Bytes.ToString("#,##0") + " " + ResourceController.GetTranslation("SizeBytes") + ")";
322+
+ " (" + ByteSizeLib.ByteSize.FromBytes(Item.FileSizeBytes).Bytes.ToString("#,##0") + " " + ResourceController.GetTranslation("ItemSizeBytes") + ")";
323323

324324
// Get file MD5 hash
325325
var hashAlgTypeName = HashAlgorithmNames.Md5;

0 commit comments

Comments
 (0)