Matthias Breddin

Results 17 issues of Matthias Breddin

What do you guys think, a Twig extension to display a flag? {{ flag(locale) }} (inspired from ServerGrove\LocaleBundle

Feature

**[in Event/FilterLocaleSwitchEvent.php, line 39](https://github.com/lunetics/LocaleBundle/blob/aca4db031e555d7232f623502cf53ec2d6f24c6b/Event/FilterLocaleSwitchEvent.php#L39)** > With booleans, only strict comparison (with `===` operator) should be used to lower bug risks and to improve performances. ``` php * * @throws \InvalidArgumentException...

**[in Twig/Extension/LocaleSwitcherExtension.php, line 31](https://github.com/lunetics/LocaleBundle/blob/aca4db031e555d7232f623502cf53ec2d6f24c6b/Twig/Extension/LocaleSwitcherExtension.php#L31)** > A Symfony dependency injection container has been found as an argument. ``` php /** * Constructor * * @param ContainerInterface $container */ public function __construct(ContainerInterface...

**[in LocaleGuesser/BrowserLocaleGuesser.php, line 52](https://github.com/lunetics/LocaleBundle/blob/aca4db031e555d7232f623502cf53ec2d6f24c6b/LocaleGuesser/BrowserLocaleGuesser.php#L52)** > The `or` operator does not have the same precedence as `||`. > This could lead to unexpected behavior, use `||` instead. ``` php $validator =...

See: http://www.languageicon.org/index-icon.php

Feature

we could also render the locale list depending on the accept language specification example: `Accept-language', 'fr-FR,fr;q=0.1,en-US;q=0.6,en;q=0.4` and allowed locales: ``` yaml allowed_locales: - en - de - fr ``` output...

Feature

### What steps will reproduce the problem? Update `yii2-twig` to v2.5.0 (support for twig 3.9 -> see https://github.com/yiisoft/yii2-twig/pull/154 ) ### What's expected? Forms are rendered correctly ### What do you...

type:bug