Skip to content

Make form field labels translatable - #37

Merged
janopae merged 1 commit into
mainfrom
feat-translatable-labels
Oct 6, 2026
Merged

janopae merged 1 commit into
mainfrom
feat-translatable-labels

Conversation

@polarbirke

Copy link
Copy Markdown
Member

The labels of the email and categories fields were hard-coded in English. They are now translation keys in the webfactory-newsletter-registration domain, with German and English entries in the xlf files.

The labels of the email and categories fields were hard-coded in English. They are now translation keys in the `webfactory-newsletter-registration` domain, with German and English entries in the xlf files.
@polarbirke

polarbirke commented Oct 6, 2026 •

Copy link
Copy Markdown
Member Author

from #36:
This does not cause any behavioural change in the Innovationsfonds downstream project, but only gets rid of the [need for the] awkward {{ form_row(registrationForm.emailAddress, {'label': 'E-Mail-Adresse'}) }}

Yep, that can be changed in gba-innovationsfonds/src/Resources/templates/bundles/WebfactoryNewsletterRegistrationBundle/StartRegistration/form-partial.html.twig to just
{{ form_row(registrationForm.emailAddress) }}

@janopae
janopae merged commit c38796f into main Oct 6, 2026
3 checks passed
@janopae
janopae deleted the feat-translatable-labels branch October 6, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants