1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00

Polish langage added

This commit is contained in:
Simon Vieille 2018-04-12 09:19:12 +02:00
parent d73e4df326
commit a0e305117c
No known key found for this signature in database
GPG Key ID: 919533E2B946EA10
3 changed files with 3 additions and 2 deletions

View File

@ -416,3 +416,4 @@ Contributors
* Marjorie Da Silva * Marjorie Da Silva
* Mélanie Chanat * Mélanie Chanat
* Showfom * Showfom
* Tavin

View File

@ -11,7 +11,7 @@ use Symfony\Component\HttpFoundation\Cookie;
$app->register(new TranslationServiceProvider(), array( $app->register(new TranslationServiceProvider(), array(
'locale' => 'en', 'locale' => 'en',
'locale_fallback' => 'en', 'locale_fallback' => 'en',
'locales' => array('en', 'fr', 'es', 'de', 'cn'), 'locales' => array('en', 'fr', 'es', 'de', 'cn', 'pl'),
)); ));
$app['translator'] = $app->extend('translator', function ($translator, $app) { $app['translator'] = $app->extend('translator', function ($translator, $app) {

View File

@ -81,7 +81,7 @@
</ul> </ul>
{% block langs %} {% block langs %}
<p class="navbar-text navbar-right"> <p class="navbar-text navbar-right">
{% for locale, flag in {'en': 'gb', 'fr': 'fr', 'es': 'es', 'de': 'de', 'cn': 'cn'} %} {% for locale, flag in {'en': 'gb', 'fr': 'fr', 'es': 'es', 'de': 'de', 'cn': 'cn', 'pl': 'pl'} %}
<a class="lang btn btn-xs cipher-link" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({_locale: locale})) }}"> <a class="lang btn btn-xs cipher-link" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({_locale: locale})) }}">
<span class="flag-icon flag-icon-{{ flag }}"></span> <span class="flag-icon flag-icon-{{ flag }}"></span>
</a> </a>