FuelPHP ORM database schema for i18n, opinions/suggestions FuelPHP ORM database schema for i18n, opinions/suggestions database database

FuelPHP ORM database schema for i18n, opinions/suggestions


What I simply do is add a lang field in the the table.

Then I filter on that field:

SELECT * FROM articles WHERE lang = 'en'

I even use it in CRUD for admin sections where the user can switch languages, and they see all the entries for that specific language.

And an editor will be automatically working for content in the language he is in.

INSERT INTO articles VALUES('My Title', 'My Article', 'en')

And simply get 'en' from the users current local. (I do allow them to change in forms though to override it).