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

Explain how multilang works #277

Merged
merged 1 commit into from
Oct 1, 2013
Merged

Explain how multilang works #277

merged 1 commit into from
Oct 1, 2013

Conversation

dantleech
Copy link
Member

I am confused about how persiting multilang docs in the CMF actually works..

In the MenuBundle documentation I wanted to link to the CoreBundle multilang docuemntation, and explain how to persist docs there, but then it made sense to link to the PHPCR-ODM docs which use bindTranslation.

But then the TranslatableInterface has setLocale, so do we need to call bindTranslation ? Is locale read only? Will calling setLocale do anything?

Anyway, we should make all this clear here.

@wouterj
Copy link
Member

wouterj commented Sep 29, 2013

We want to create a book article about multilanguaging, #257 . I think these things should get discussed there

@dantleech
Copy link
Member Author

@wouterj ok, but we should still document how this works here right? As the bundle provides the feature.

@lsmith77
Copy link
Member

if there is a locale mapping and the locale is set to a different value than was used when the document was created, then phpcr odm will do an automatic bindTranslation()

@dbu
Copy link
Member

dbu commented Sep 30, 2013

@dantleech the reason bindTranslation exists is so that your script can save more than one locale in one flush operation. as data is copied on the flush normally, without this you would need to flush after each locale.

as for the doc, i think we should only explain the features of the CmfCoreBundle on this page and otherwise refer to the multilang book article #257. can you add a note in #257 about that if you agree?

dbu added a commit that referenced this pull request Oct 1, 2013
@dbu dbu merged commit fc10da3 into master Oct 1, 2013
@dbu dbu deleted the core_dan branch October 1, 2013 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants