Hi, there!
I'm implementing a multi-language system for my application and searching by Phalcon's support to achieve this, I found a custom Adapter via Incubator (https://github.com/phalcon/incubator/tree/master/Library/Phalcon/Translate/Adapter).
Following the documentation, Phalcon is expecting a table with this scheme:
CREATE TABLE translations
(
key_name
varchar(32) NOT NULL,
value
text,
PRIMARY KEY (key_name
)
)
IMO, first of all, this structure isn't much consistent. Secondly, I want to use my own structure. So I ask: it's a good habit/practice to change the query's behavior directly in Incubator or it's better to create my own translation adapter? And if I want to create my own Adapter, where is the right place to put my file in?
And more: following the table's scheme indicated by Incubator, how does Phalcon knows which is the language that the user is looking for?
Cheers!