Take the 2-minute tour ×

When I generate the translate container file (message.xml)

by using this command :

php symfony i18n:extract frontend en --auto-save

is it possible to replace the XML file by a YML file ?

share|improve this question

1 Answer 1

You can't.

Symfony 1.x only rely on xliff file to handle internationalization. So you can't use a yml file for that.

All translations are stored in a catalogue. The i18n framework provides a lot of different strategies to store the translations. We will use the "XLIFF" format, which is a standard and the most flexible one. It is also the store used by the admin generator and most symfony plugins.

As you can see here, there is no function like sfMessageSource_Yml to handle i18n inside yaml file.

But you can handle translation in database. There are some plugins for that:

share|improve this answer

Your Answer


