Skip to content

Circular reference detected when adding a fallback catalogue "nl" #15522

@kimausloos

Description

@kimausloos

Since Symfony 2.7 (using 2.7.3 atm) I have an issue with the translations and always get an exception.

I'm still debugging but my guess is since we are using nl_BE and nl_NL (fallback locale nl_BE) there is an issue with the built-in translations/validators using the short locale (nl). From what I discover in the cache files this is happening:

catalogue.nl_BE.php:
    $catalogue = new MessageCatalogue('nl_BE', array ());
    $catalogueNl = new MessageCatalogue('nl', array ());
    $catalogue->addFallbackCatalogue($catalogueNl);

    return $catalogue;

catalogue.nl_NL.php:
    $catalogue = new MessageCatalogue('nl_NL', array ());
    $catalogueNl = new MessageCatalogue('nl', array ());
    $catalogue->addFallbackCatalogue($catalogueNl);

    $catalogueNl_BE = new MessageCatalogue('nl_BE', array ());
    $catalogueNl->addFallbackCatalogue($catalogueNl_BE);
    $catalogueNl = new MessageCatalogue('nl', array ());
    $catalogueNl_BE->addFallbackCatalogue($catalogueNl);

    return $catalogue;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions