Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Save translations into a database table #12

Open
fernandoigual opened this issue May 6, 2015 · 7 comments
Open

Save translations into a database table #12

fernandoigual opened this issue May 6, 2015 · 7 comments
Assignees

Comments

@fernandoigual
Copy link

Hi again!

I have a new project which is deployed in AWS. This website can be deployed in multiple servers.
If an administrator adds or changes a translation this only will be saved in this server. All data is in a database and assets are in S3 storage.

If you think is easy to implement tell me please and I will try to help you.

Thanks again in advance.

@boboldehampsink
Copy link
Owner

So do you want the translation file to be saved in S3 or?

@fernandoigual
Copy link
Author

I think that this would be very slow to load and a database table with a craft record model is the best option. Maybe a table with locale, original and translation fields and a settings page for select storage, file or database.

What do you think about?

@boboldehampsink
Copy link
Owner

Well, it should still be written to a file because that is what Craft reads. Maybe we can have a database connection in a language file, I'll have to test that.

@fernandoigual
Copy link
Author

I understand. I could change the configuration Message component Yii but I have to understand how craft does it

@fernandoigual
Copy link
Author

I just see that craft uses PhpMessageSource Yii wrapper and you can't change it...

@markstewie
Copy link

I have exactly the same issue! Is there an update to the plugin or was there a solution found to move the translations to the database... or to an S3 file? Was there any way around this?

@boboldehampsink
Copy link
Owner

We haven't found one yet

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

No branches or pull requests

3 participants