bug #830 fixed translator locale management (fabpot)
This PR was merged into the 1.1 branch. Discussion ---------- fixed translator locale management The locale used by the translator was set the first time the translator was instantiated. That's a problem for several reasons: * changing the locale via `$app['locale']` would not change the locale used by the translator; * when using fragments, the locale was not updated correctly; * also, when using the web profiler, the translator is created early on (before the handling of a request), and so the locale was always `en` (see silexphp/Silex-WebProfiler#23). Commits ------- 902c2c8c fixed translator locale management
Showing
src/Silex/Translator.php
0 → 100644
Please register or sign in to comment