mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-18 17:31:35 +00:00
Rename SI column from "Name (SI)" to "SI Value"
The column now shows the parsed numeric value rather than the part name, so the label should reflect that.
This commit is contained in:
parent
63486782c4
commit
f75c5d7dd9
3 changed files with 6 additions and 7 deletions
|
|
@ -119,8 +119,8 @@ final class PartsDataTable implements DataTableTypeInterface
|
|||
'render' => fn($value, Part $context) => $this->partDataTableHelper->renderName($context),
|
||||
'orderField' => 'NATSORT(part.name)'
|
||||
])
|
||||
->add('si_name', TextColumn::class, [
|
||||
'label' => $this->translator->trans('part.table.si_name'),
|
||||
->add('si_value', TextColumn::class, [
|
||||
'label' => $this->translator->trans('part.table.si_value'),
|
||||
'render' => function ($value, Part $context): string {
|
||||
$siValue = SiValueSort::sqliteSiValue($context->getName());
|
||||
if ($siValue !== null) {
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ enum PartTableColumns : string implements TranslatableInterface
|
|||
case TAGS = "tags";
|
||||
case ATTACHMENTS = "attachments";
|
||||
|
||||
case SI_NAME = "si_name";
|
||||
case SI_VALUE = "si_value";
|
||||
|
||||
case EDA_REFERENCE = "eda_reference";
|
||||
|
||||
|
|
@ -69,7 +69,6 @@ enum PartTableColumns : string implements TranslatableInterface
|
|||
self::NEEDS_REVIEW => 'part.table.needsReview',
|
||||
self::MANUFACTURING_STATUS => 'part.table.manufacturingStatus',
|
||||
self::MPN => 'part.table.mpn',
|
||||
self::SI_NAME => 'part.table.si_name',
|
||||
default => 'part.table.' . $this->value,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -2780,10 +2780,10 @@ If you have done this incorrectly or if a computer is no longer trusted, you can
|
|||
<target>Name</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="sIvAlUe" name="part.table.si_name">
|
||||
<unit id="sIvAlUe" name="part.table.si_value">
|
||||
<segment state="translated">
|
||||
<source>part.table.si_name</source>
|
||||
<target>Name (SI)</target>
|
||||
<source>part.table.si_value</source>
|
||||
<target>SI Value</target>
|
||||
</segment>
|
||||
</unit>
|
||||
<unit id="rW_SFJE" name="part.table.id">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue