You will find my file here 
: 
http://www.michelsalib.com/wp-content/uploads/2011/04/UpdateTransCommand.php_.txt

It is a command that you can launch using your CLI.
1. It will parse all your templates looking for trans blocks or filters.
2. It will also extract the messages from your translations files (in yaml) 
depending on a locale argument.
3. Then it merges both of them while taking care of your message domain.
Then you can choose to display or save using the option --dump-messages 
or --force. The --force option save the files after making a backup.

Moreover all the new messages are assigned a default value by copying the 
message prefixed by a '__'.

Example :
vendor:trans:update en --force
vendor:trans:update fr --dump-messages

Hope it is fine for you!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to