translate icon indicating copy to clipboard operation
translate copied to clipboard

Save translations into a database table

Open fernandoigual opened this issue 9 years ago • 7 comments

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.

fernandoigual avatar May 06 '15 15:05 fernandoigual

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

boboldehampsink avatar May 06 '15 17:05 boboldehampsink

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?

fernandoigual avatar May 06 '15 17:05 fernandoigual

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.

boboldehampsink avatar May 06 '15 17:05 boboldehampsink

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

fernandoigual avatar May 06 '15 18:05 fernandoigual

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

fernandoigual avatar May 06 '15 18:05 fernandoigual

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?

markstewie avatar Sep 27 '15 19:09 markstewie

We haven't found one yet

boboldehampsink avatar Sep 28 '15 06:09 boboldehampsink