mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Modernize XAML localization.
This commit is contained in:
@@ -442,7 +442,7 @@ public sealed partial class ScsiInfoViewModel : ViewModelBase
|
||||
{
|
||||
foreach(KeyValuePair<byte, byte[]> page in scsiEvpdPages.OrderBy(t => t.Key))
|
||||
{
|
||||
string evpdPageTitle = "";
|
||||
var evpdPageTitle = "";
|
||||
string evpdDecodedPage;
|
||||
|
||||
switch(page.Key)
|
||||
@@ -637,7 +637,7 @@ public sealed partial class ScsiInfoViewModel : ViewModelBase
|
||||
{
|
||||
foreach(Features.FeatureDescriptor desc in ftr.Descriptors)
|
||||
{
|
||||
string featureNumber = string.Format(Localization.Core.Feature_0, desc.Code);
|
||||
var featureNumber = string.Format(Localization.Core.Feature_0, desc.Code);
|
||||
AaruLogging.Debug(MODULE_NAME, Localization.Core.Feature_0, desc.Code);
|
||||
|
||||
string featureDescription = desc.Code switch
|
||||
@@ -765,20 +765,6 @@ public sealed partial class ScsiInfoViewModel : ViewModelBase
|
||||
}
|
||||
}
|
||||
|
||||
public string InquiryLabel => UI.Title_INQUIRY;
|
||||
public string ScsiInquiryLabel => UI.Title_SCSI_INQUIRY;
|
||||
public string SaveInquiryBinaryLabel => UI.ButtonLabel_Save_binary_to_file;
|
||||
public string SaveInquiryTextLabel => UI.ButtonLabel_Save_text_to_file;
|
||||
public string ModeSenseLabel => UI.Title_MODE_SENSE;
|
||||
public string PageLabel => UI.Title_Page;
|
||||
public string SaveModeSense6Label => UI.ButtonLabel_Save_MODE_SENSE_6_response_to_file;
|
||||
public string SaveModeSense10Label => UI.ButtonLabel_Save_MODE_SENSE_10_response_to_file;
|
||||
public string EvpdLabel => UI.Title_EVPD;
|
||||
public string SaveEvpdPageLabel => UI.ButtonLabel_Save_EVPD_page_to_file;
|
||||
public string MmcFeaturesLabel => UI.Title_MMC_FEATURES;
|
||||
public string FeatureLabel => UI.Title_Feature;
|
||||
public string SaveMmcFeaturesLabel => UI.ButtonLabel_Save_MMC_GET_CONFIGURATION_response_to_file;
|
||||
|
||||
async Task SaveInquiryBinaryAsync()
|
||||
{
|
||||
IStorageFile result = await _view.StorageProvider.SaveFilePickerAsync(new FilePickerSaveOptions
|
||||
|
||||
Reference in New Issue
Block a user