mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-14 14:19:33 +00:00
Füge Unterstützung für Datenquellen-Synonyme hinzu.
Ermöglicht benutzerdefinierte Synonyme für Datenquellen basierend auf Locale. Synonyme werden in verschiedenen Bereichen wie Bäumen, Übersetzungen und Vorlagen genutzt, um anpassbare Namen anzuzeigen.
This commit is contained in:
parent
8009418d54
commit
310461faac
28 changed files with 274 additions and 36 deletions
|
|
@ -16,6 +16,20 @@ parameters:
|
|||
|
||||
partdb.create_assembly_use_ipn_placeholder_in_name: '%env(bool:CREATE_ASSEMBLY_USE_IPN_PLACEHOLDER_IN_NAME)%' # Use an %%ipn%% placeholder in the name of an assembly. Placeholder is replaced with the ipn input while saving.
|
||||
|
||||
partdb.data_sources.synonyms: # Define your own synonyms for the given data sources
|
||||
# Possible datasources: category, storagelocation, footprint, manufacturer, supplier, project, assembly
|
||||
# Possible locales like the ones in 'partdb.locale_menu': en, de, it, fr, ru, ja, cs, da, zh, pl
|
||||
#category:
|
||||
#de: 'Bauteil Kategorien'
|
||||
#en: 'Part categories'
|
||||
#project:
|
||||
#de: 'Geräte'
|
||||
#en: 'Devices'
|
||||
#assembly:
|
||||
#de: 'Zusammengestellte Baugruppe'
|
||||
#en: 'Combined assembly'
|
||||
|
||||
|
||||
######################################################################################################################
|
||||
# Users and Privacy
|
||||
######################################################################################################################
|
||||
|
|
|
|||
|
|
@ -198,6 +198,27 @@ services:
|
|||
$fontDirectory: '%kernel.project_dir%/var/dompdf/fonts/'
|
||||
$tmpDirectory: '%kernel.project_dir%/var/dompdf/tmp/'
|
||||
|
||||
####################################################################################################################
|
||||
# Trees
|
||||
####################################################################################################################
|
||||
App\Services\Trees\TreeViewGenerator:
|
||||
arguments:
|
||||
$rootNodeExpandedByDefault: '%partdb.sidebar.root_expanded%'
|
||||
$rootNodeEnabled: '%partdb.sidebar.root_node_enable%'
|
||||
$dataSourceSynonyms: '%partdb.data_sources.synonyms%'
|
||||
App\Services\Trees\ToolsTreeBuilder:
|
||||
arguments:
|
||||
$dataSourceSynonyms: '%partdb.data_sources.synonyms%'
|
||||
|
||||
####################################################################################################################
|
||||
# Twig Extensions
|
||||
####################################################################################################################
|
||||
|
||||
App\Twig\DataSourceNameExtension:
|
||||
arguments:
|
||||
$dataSourceSynonyms: '%partdb.data_sources.synonyms%'
|
||||
tags: [ 'twig.extension' ]
|
||||
|
||||
####################################################################################################################
|
||||
# Part info provider system
|
||||
####################################################################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue