Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[2.6] Locale from Route does not work in the Template #12167

Closed
@sebastianblum

Description

@sebastianblum

Hello!

For a new project I tried to use 2.6.x-dev already and the locale detection from a route does not work in 2.6. So i changed back the symfony version from "2.6.x-dev" to "~2.5" in the composer.json and now the locate detection works as expected.

To reproduce the problem, I created a fork from symfony-standard and rebuilt it in a DemoLocaleBundle.
https://github.com/sebastianblum/symfony-standard/tree/master

The Controller is the following:
https://github.com/sebastianblum/symfony-standard/blob/master/src/Demo/LocaleBundle/Controller/DefaultController.php

The output:
/de: I'm the english text - Locale as Controller argument: de
/en: I'm the english text - Locale as Controller argument: en

With 2.5.5 the unit tests are running,
With 2.6.x-dev not.

Thank you very much, sebastian

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions