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:
parent
d73e4df326
commit
a0e305117c
@ -416,3 +416,4 @@ Contributors
|
|||||||
* Marjorie Da Silva
|
* Marjorie Da Silva
|
||||||
* Mélanie Chanat
|
* Mélanie Chanat
|
||||||
* Showfom
|
* Showfom
|
||||||
|
* Tavin
|
||||||
|
@ -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) {
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user