schmittjoh / JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
http://jmsyst.com/bundles/JMSTranslationBundle
426 stars 292 forks source link

Extractor skips labels defined in twig templates #394

Open ABM-Dan opened 8 years ago

ABM-Dan commented 8 years ago
Q A
Bundle version dev-master (58da772)
Symfony version 3.1.3
PHP version 5.6.19

when faced with code like {{ form_row(form.myInput, { label:'New Label' }) }} the label is not extracted

mvrhov commented 8 years ago

IMO this is correct. You must use {{ form_row(form.myInput, { label:'label.key'|desc('New Label') }) }} as written in manual

ABM-Dan commented 8 years ago

Oh, so it's a matter of them having a description, got it. Will test.