mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-13 05:39:33 +00:00
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.
15 lines
No EOL
722 B
Twig
15 lines
No EOL
722 B
Twig
{% extends "admin/base_company_admin.html.twig" %}
|
|
|
|
{% block card_title %}
|
|
{% set dataSourceName = get_data_source_name('manufacturer', 'manufacturer.caption') %}
|
|
{% set translatedSource = 'manufacturer.caption'|trans %}
|
|
<i class="fas fa-industry fa-fw"></i> {% if dataSourceName != translatedSource %}{{ 'datasource.synonym'|trans({'%name%': translatedSource, '%synonym%': dataSourceName}) }}{% else %}{{ translatedSource }}{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block edit_title %}
|
|
{% trans %}manufacturer.edit{% endtrans %}: <a href="{{ path('part_list_manufacturer', {'id': entity.id}) }}">{{ entity.name }}</a>
|
|
{% endblock %}
|
|
|
|
{% block new_title %}
|
|
{% trans %}manufacturer.new{% endtrans %}
|
|
{% endblock %} |