public function buildForm(FormBuilderInterface $builder, array $options)
{
$choices = array();
foreach ($options['locales'] as $value) {
$choices[$value['locale']] = $value['locale'];
}
$builder->add('fromLocale', 'choice', array('label' => 'form.label_from_locale', 'choices' => $choices))->add('toLocale', 'choice', array('label' => 'form.label_to_locale', 'choices' => $choices));
}