Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Using locales with a dash instead of an underscore #107

@jrmyio

Description

@jrmyio

In my app there I have 3 locales
en, nl-nl and nl-be.

I defined the odm locales as:

doctrine_phpcr:
    odm:
        locales:
            en: [nl-nl, nl-be]
            nl-nl : [nl-be, en]
            nl-be : [nl-nl, en]

However, this dashes used in this configuration seem to be overwritten by PHPCR to underscore.

As soon as I go to the Admin Bundle
admin/cmf/block/simpleblock/cms/blocks/test/edit?tl=nl-nl

I will hit an error `There is no language fallback for language 'nl-nl'.

Is this a problem of the PHPCR-admin-integration that it has to also overwrite dashes with underscores or shouldn't this be happening in the first place?

Is there any solution to tackle this problem without having locales to be using underscores?

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