Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multilanguage support #32

Open
ciro-webcom opened this issue Aug 14, 2017 · 3 comments
Open

Multilanguage support #32

ciro-webcom opened this issue Aug 14, 2017 · 3 comments

Comments

@ciro-webcom
Copy link

Hi,

First of all, I want to thank you for your work, this bundle saves me a lot of work.
Can you tell me what is the best way to use the bundle for a multilangage blog?
I wanted to put a property $locale in articles, categories and tags entities but if I do that, I have to change repositories. For example ArticleRepository functions to get articles collection in a given language, and a lot of other things in templates, such as the sortableTh macro, in wich I have to put the locale parameter for the given route and all the routes parameters for list and create action, because the controller needs to know the locale.

What is the best way to do what I want?

Thank you

@7tomas7
Copy link

7tomas7 commented Aug 22, 2018

@ciro-webcom I have similar problem, can you tell us how did you resolve the problem?

@ciro-webcom
Copy link
Author

Hi,
I don't remember well, but I think the best way is to fork the repo and add a column locale on articles and categories tables, and change the queries in the repositories including the locale parameter. I also didin't use the original templates, so I didn't had to change the twig files

@7tomas7
Copy link

7tomas7 commented Sep 4, 2018

@ciro-webcom thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants