Memory speed is stored as hertz in the database. Fixes #5

This commit is contained in:
2020-06-09 02:41:16 +01:00
parent ad95759ed0
commit aa9f535d18
3 changed files with 11 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<Version>4.0.0.1574</Version> <Version>4.0.0.1575</Version>
<Company>Canary Islands Computer Museum</Company> <Company>Canary Islands Computer Museum</Company>
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright> <Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
<Product>Canary Islands Computer Museum Website</Product> <Product>Canary Islands Computer Museum Website</Product>

View File

@@ -370,7 +370,7 @@
</Select> </Select>
</Field> </Field>
<Field> <Field>
<FieldLabel>@L["Nominal speed (MHz)"]</FieldLabel> <FieldLabel>@L["Nominal speed (Hz)"]</FieldLabel>
<Check TValue="bool" @bind-Checked="@_unknownMemorySpeed">@L["Unknown (memory by machine speed)"]</Check> <Check TValue="bool" @bind-Checked="@_unknownMemorySpeed">@L["Unknown (memory by machine speed)"]</Check>
@if (!_unknownMemorySpeed) @if (!_unknownMemorySpeed)
{ {
@@ -445,7 +445,7 @@
<td> <td>
@if (item.Speed.HasValue) @if (item.Speed.HasValue)
{ {
@string.Format(L["{0:F3} MHz"], item.Speed) @string.Format(L["{0:F3} Hz"], item.Speed)
} }
else else
{ {

View File

@@ -582,6 +582,10 @@
<value>Velocidad nominal (MHz)</value> <value>Velocidad nominal (MHz)</value>
<comment>Nominal speed (MHz)</comment> <comment>Nominal speed (MHz)</comment>
</data> </data>
<data name="Nominal speed (Hz)" xml:space="preserve">
<value>Velocidad nominal (Hz)</value>
<comment>Nominal speed (Hz)</comment>
</data>
<data name="Please enter a valid speed for this processor." xml:space="preserve"> <data name="Please enter a valid speed for this processor." xml:space="preserve">
<value>Por favor introduce una velocidad válida para este procesador.</value> <value>Por favor introduce una velocidad válida para este procesador.</value>
<comment>Please enter a valid speed for this processor.</comment> <comment>Please enter a valid speed for this processor.</comment>
@@ -594,6 +598,10 @@
<value>{0:F3} MHz</value> <value>{0:F3} MHz</value>
<comment>{0:F3} MHz</comment> <comment>{0:F3} MHz</comment>
</data> </data>
<data name="{0:F3} Hz" xml:space="preserve">
<value>{0:F3} Hz</value>
<comment>{0:F3} Hz</comment>
</data>
<data name="Memory belonging to this machine" xml:space="preserve"> <data name="Memory belonging to this machine" xml:space="preserve">
<value>Memoria perteneciente a esta máquina</value> <value>Memoria perteneciente a esta máquina</value>
<comment>Memory belonging to this machine</comment> <comment>Memory belonging to this machine</comment>