mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-11 19:04:31 +02:00
Use name "project" instead of "device" everywhere in the frontend
This commit is contained in:
parent
897ea72bd0
commit
513e7f3851
12 changed files with 47 additions and 47 deletions
|
@ -60,7 +60,7 @@ class ElementTypeNameGenerator
|
|||
Attachment::class => $this->translator->trans('attachment.label'),
|
||||
Category::class => $this->translator->trans('category.label'),
|
||||
AttachmentType::class => $this->translator->trans('attachment_type.label'),
|
||||
Project::class => $this->translator->trans('device.label'),
|
||||
Project::class => $this->translator->trans('project.label'),
|
||||
ProjectBOMEntry::class => $this->translator->trans('project_bom_entry.label'),
|
||||
Footprint::class => $this->translator->trans('footprint.label'),
|
||||
Manufacturer::class => $this->translator->trans('manufacturer.label'),
|
||||
|
|
|
@ -158,7 +158,7 @@ class ToolsTreeBuilder
|
|||
}
|
||||
if ($this->security->isGranted('read', new Project())) {
|
||||
$nodes[] = (new TreeViewNode(
|
||||
$this->translator->trans('tree.tools.edit.devices'),
|
||||
$this->translator->trans('tree.tools.edit.projects'),
|
||||
$this->urlGenerator->generate('device_new')
|
||||
))->setIcon('fa-fw fa-treeview fa-solid fa-archive');
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ class TreeViewGenerator
|
|||
case Supplier::class:
|
||||
return $this->translator->trans('supplier.labelp');
|
||||
case Project::class:
|
||||
return $this->translator->trans('device.labelp');
|
||||
return $this->translator->trans('project.labelp');
|
||||
default:
|
||||
return $this->translator->trans('tree.root_node.text');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue