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

Change the DB structure - use a table for translation #184

Open
gagarine opened this issue Oct 17, 2018 · 2 comments
Open

Change the DB structure - use a table for translation #184

gagarine opened this issue Oct 17, 2018 · 2 comments

Comments

@gagarine
Copy link
Contributor

Instead of serializing data why not creating a new table for translatable field for each content type?

screenshot 2018-10-17 at 12 21 45

I personally things at least a DB structure than allow translation should be supported in core and opened the discussion their : https://discuss.bolt.cm/d/474-multi-language-roadmap/2 . But this plugin can be a great way to experiment.

@SvanteRichter
Copy link
Contributor

Well, at the outset of this one of the goals were to not have to change the db structure when adding a field as translatable, so that restricted the implementation. We have also had a number of problems that don't fit neatly into that model like repeaters, blocks, templatefields and even worse stuff like repeaters-in-templatefields.

My work on this extension came out of necessity, so it's not at all nice-and-tidy. If you feel like improving it either just submit a PR or talk to me or bob (or wait for bolt v4, since it'll probably be easier to have a proper solution there).

@gagarine
Copy link
Contributor Author

gagarine commented Nov 2, 2018

Yeah, I understand Bolt a bit more now and you choices make sens. I think any big change should wait the next version of Bolt. Apparently they are going to change the data structure.

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