diff --git a/config/packages/translation.yaml b/config/packages/translation.yaml index e6b1cd66..81fb0c36 100644 --- a/config/packages/translation.yaml +++ b/config/packages/translation.yaml @@ -4,3 +4,4 @@ framework: default_path: '%kernel.project_dir%/translations' fallbacks: - '%locale%' + - 'en' diff --git a/config/services.yaml b/config/services.yaml index 10bca7de..9fcb4caf 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -4,7 +4,7 @@ # Put parameters here that don't need to change on each machine where the app is deployed # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration parameters: - locale: 'en' + locale: 'de' services: # default configuration for services in *this* file diff --git a/templates/base.html.twig b/templates/base.html.twig index 4538746b..0bfe10ef 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -16,7 +16,7 @@ @@ -227,7 +227,7 @@ {if !empty($reload_link)}
- +
{/if} diff --git a/templates/show_part_info.html.twig b/templates/show_part_info.html.twig index d4820c55..0fd69b45 100644 --- a/templates/show_part_info.html.twig +++ b/templates/show_part_info.html.twig @@ -1,16 +1,16 @@ {% extends "base.html.twig" %} {% block title %} - {% trans %}Detail info for{% endtrans %} {{ part.name }} + {% trans %}part.info.title{% endtrans %} {{ part.name }} {% endblock %} {% block content %}
- {% trans %}Detail info for{% endtrans %} "{{ part.name }}" + {% trans %}part.info.title{% endtrans %} "{{ part.name }}"
- {% trans %}ID:{% endtrans %} {{ part.id }} + {% trans %}id.label{% endtrans %}: {{ part.id }}
@@ -22,30 +22,30 @@
-
{{ part.manufacturer.name ?? ""}}
+
{{ part.manufacturer.name ?? ""}}

{{ part.name }}

-
{{ part.description }}
-
+
{{ part.description }}
+
{{ part.storelocation.fullPath ?? "-"}}
- {{ part.instock }} + {{ part.instock }} / - {{ part.mininstock }} + {{ part.mininstock }}
-
+
{{ part.footprint.fullPath ?? "-"}}
-
+
{{ "TODO" }}
{% if part.comment != "" %} -
+
{{ part.comment }}
@@ -59,25 +59,25 @@ - {% trans %}Attachments{% endtrans %} + {% trans %}attachment.labelp{% endtrans %} @@ -94,8 +94,8 @@
- - + +
@@ -110,17 +110,17 @@
- +
- +