Add translations to subitems of machine admin view.

This commit is contained in:
2020-05-29 19:11:36 +01:00
parent 45d9bac9b2
commit 116813fe29
4 changed files with 256 additions and 10 deletions

View File

@@ -443,7 +443,7 @@
}
else
{
@L["Unknown (memory by machine speed)"]
@L["Unknown (memory by machine size)"]
}
</td>
<td>
@@ -492,7 +492,7 @@
</Field>
<Field>
<FieldLabel>@L["Nominal capacity (bytes)"]</FieldLabel>
<Check TValue="bool" @bind-Checked="@_unknownStorageSize">@L["Unknown (storage by machine nominal capacity)"]</Check>
<Check TValue="bool" @bind-Checked="@_unknownStorageSize">@L["Unknown or empty (storage by machine nominal capacity)"]</Check>
@if (!_unknownStorageSize)
{
<Validation Validator="@ValidateStorageSize">
@@ -543,7 +543,7 @@
}
else
{
@L["Unknown (storage by machine nominal capacity)"]
@L["Unknown or empty (storage by machine nominal capacity)"]
}
</td>
<td>
@@ -557,7 +557,7 @@
}
<hr />
<h3>@L["Screens attached"]</h3>
<h3>@L["Screens attached to this machine"]</h3>
<Button Color="Color.Success" Clicked="OnAddScreenClick" Disabled="_addingScreen">@L["Add new (screen by machine)"]</Button>
@if (_addingScreen)
{
@@ -569,7 +569,7 @@
{
if (_machineScreens.Any(s => s.ScreenId == screen.Id))
{
<SelectItem TValue="int?" Value="@screen.Id">@screen.Diagonal with a native resolution of @screen.NativeResolution</SelectItem>
<SelectItem TValue="int?" Value="@screen.Id">@string.Format(L["{0}\" with a native resolution of {1}",screen.Diagonal, screen.NativeResolution)</SelectItem>
}
}
</Select>

View File

@@ -389,13 +389,11 @@ namespace Marechai.Pages.Admin.Details
_deletingCpuByMachine = true;
_deleteTitle = L["Delete processor from this machine"];
string speed;
speed = _currentCpuByMachine?.Speed == null ? L["Unknown (processor by machine speed)"]
: string.Format(L["{0:F3} MHz"], _currentCpuByMachine?.Speed);
string speed = _currentCpuByMachine?.Speed == null ? L["Unknown (processor by machine speed)"]
: string.Format(L["{0:F3} MHz"], _currentCpuByMachine?.Speed);
_deleteText =
string.Format(L["Are you sure you want to delete the graphical processing unit {0} with speed {2} manufactured by {1} from this machine?"],
string.Format(L["Are you sure you want to delete the processor {0} with speed {2} manufactured by {1} from this machine?"],
_currentCpuByMachine?.Name, _currentCpuByMachine?.CompanyName, speed);
_frmDelete.Show();