Add German

This commit is contained in:
Thomas 2019-08-22 11:59:22 +02:00
parent 743126786a
commit f298988a4e
3 changed files with 9 additions and 3 deletions

View file

@ -4,7 +4,7 @@
# Put parameters here that don't need to change on each machine where the app is deployed # 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 # https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters: parameters:
allowed_language: "fr|en|nl|pt-PT|pt-BR" allowed_language: "fr|en|nl|pt-PT|pt-BR|de"
languages: "(%allowed_language%)?" languages: "(%allowed_language%)?"
services: services:
# default configuration for services in *this* file # default configuration for services in *this* file

5
public/img/flags/de.svg Normal file
View file

@ -0,0 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg" id="flag-icon-css-de" viewBox="0 0 640 480">
<path fill="#ffce00" d="M0 320h640v160H0z"/>
<path d="M0 0h640v160H0z"/>
<path fill="#d00" d="M0 160h640v160H0z"/>
</svg>

After

Width:  |  Height:  |  Size: 213 B

View file

@ -44,9 +44,10 @@
{% endif %} {% endif %}
<a class="dropdown-item" href="{{ path(route, {'_locale':'en' }) }}"><img src="{{ asset("img/flags/en.svg") }}" alt="English" width="20">&nbsp;&nbsp;English</a> <a class="dropdown-item" href="{{ path(route, {'_locale':'en' }) }}"><img src="{{ asset("img/flags/en.svg") }}" alt="English" width="20">&nbsp;&nbsp;English</a>
<a class="dropdown-item" href="{{ path(route, {'_locale':'fr' }) }}"><img src="{{ asset("img/flags/fr.svg") }}" alt="Français" width="20">&nbsp;&nbsp;Français</a> <a class="dropdown-item" href="{{ path(route, {'_locale':'fr' }) }}"><img src="{{ asset("img/flags/fr.svg") }}" alt="Français" width="20">&nbsp;&nbsp;Français</a>
<a class="dropdown-item" href="{{ path(route, {'_locale':'de' }) }}"><img src="{{ asset("img/flags/de.svg") }}" alt="Deutsch" width="20">&nbsp;&nbsp;Deutsch</a>
<a class="dropdown-item" href="{{ path(route, {'_locale':'nl' }) }}"><img src="{{ asset("img/flags/nl.svg") }}" alt="Nederlands" width="20">&nbsp;&nbsp;Nederlands</a> <a class="dropdown-item" href="{{ path(route, {'_locale':'nl' }) }}"><img src="{{ asset("img/flags/nl.svg") }}" alt="Nederlands" width="20">&nbsp;&nbsp;Nederlands</a>
<a class="dropdown-item" href="{{ path(route, {'_locale':'pt-PT' }) }}"><img src="{{ asset("img/flags/pt-PT.svg") }}" alt="Nederlands" width="20">&nbsp;&nbsp;Português</a> <a class="dropdown-item" href="{{ path(route, {'_locale':'pt-PT' }) }}"><img src="{{ asset("img/flags/pt-PT.svg") }}" alt="Português" width="20">&nbsp;&nbsp;Português</a>
<a class="dropdown-item" href="{{ path(route, {'_locale':'pt-BR' }) }}"><img src="{{ asset("img/flags/pt-BR.svg") }}" alt="Nederlands" width="20">&nbsp;&nbsp;Brasil</a> <a class="dropdown-item" href="{{ path(route, {'_locale':'pt-BR' }) }}"><img src="{{ asset("img/flags/pt-BR.svg") }}" alt="Brasil" width="20">&nbsp;&nbsp;Brasil</a>
</div> </div>
</li> </li>
</ul> </ul>