Browse Source

Polish langage added

dev-master
Simon Vieille 2 years ago
parent
commit
a0e305117c
No known key found for this signature in database GPG Key ID: 919533E2B946EA10
3 changed files with 3 additions and 2 deletions
  1. +1
    -0
      README.md
  2. +1
    -1
      app/bootstrap.php.d/30-trans.php
  3. +1
    -1
      src/Gist/Resources/views/base.html.twig

+ 1
- 0
README.md View File

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

+ 1
- 1
app/bootstrap.php.d/30-trans.php View File

@ -11,7 +11,7 @@ use Symfony\Component\HttpFoundation\Cookie;
$app->register(new TranslationServiceProvider(), array(
'locale' => '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) {


+ 1
- 1
src/Gist/Resources/views/base.html.twig View File

@ -81,7 +81,7 @@
</ul>
{% block langs %}
<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})) }}">
<span class="flag-icon flag-icon-{{ flag }}"></span>
</a>


Loading…
Cancel
Save