Reputation: 11796
I would like to configure Symfony to get Translation from Mysql and not from XLIFF files.
I see explaination on this page : http://www.symfony-project.org/reference/1_4/en/05-Factories#chapter_05_i18n
I configure the factories.yml:
i18n:
class: sfI18N
param:
source: MySQL
And I get this error: 500 | Internal Server Error | sfException Error in connecting to Array.
I think I should configure which database but I don't know how to do it with doctrine.
Can anyone help me ? :)
Thanks.
Upvotes: 3
Views: 1355
Reputation: 3712
It is described here:
http://www.symfony-project.org/gentle-introduction/1_4/en/13-I18n-and-L10n
jump to section "Text Information in the Database".
Quick description:
Now generate the model and it will automatically generate the getName() method against the Tablename object, but it's gonna have a parameter the culture.
Upvotes: 3