Skip to content

Added chapter about the locale based on the user entity#4875

Merged
weaverryan merged 4 commits intosymfony:2.3from
peterrehm:locale-user-dependend
Mar 13, 2015
Merged

Added chapter about the locale based on the user entity#4875
weaverryan merged 4 commits intosymfony:2.3from
peterrehm:locale-user-dependend

Conversation

@peterrehm
Copy link
Copy Markdown
Contributor

Q A
Doc fix? no
New docs? yes
Applies to 2.3
Fixed tickets #4862

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original:

You might want to improve even further and want to define the locale based on
the user entity of the logged in user.

Proposed rewording:

You might want to improve this technique even further and define the locale based on
the user entity of the logged in user.

@javiereguiluz
Copy link
Copy Markdown
Member

@peterrehm thanks for adding this nice addition to the cookbook. I've made lots of comments, but they are minor things about the syntax. Your contents are right and that's the important thing. Thanks!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Setting the Locale based on the User Entity"

@peterrehm
Copy link
Copy Markdown
Contributor Author

Thank you for the feedback on the chapter, I have made the adjustments based on our discussion. Let's see when @xabbuh wakes up I expect the next e-mail flood :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based

@xabbuh
Copy link
Copy Markdown
Member

xabbuh commented Jan 20, 2015

Thanks for this great work @peterrehm! I left you a few comments. :)

However, I have one thought I would like to discuss with you: I am not convinced that we should actually talk about entities at all. In fact, it doesn't really matter if the user is stored in a relation database or if you load them from a custom file format or anything else. So I'd suggest to talk about "Choosing the Locale Based on the User's Preferences" or something like that. What do you think?

@peterrehm
Copy link
Copy Markdown
Contributor Author

Thank you for your feedback, I was awaiting that :)

I changed it in the title to preferences, but we mainly talk about entities. I think it makes it more clear that you also have to watch out for changes to the entity as in the end in the caution block.

@peterrehm
Copy link
Copy Markdown
Contributor Author

I think this one is finished now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants