Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Workaround for the translation of form labels for multilingual sites < SS 2.3.2


Go to End


1398 Views

Avatar
Kalileo

Community Member, 127 Posts

21 July 2009 at 3:23pm

Edited: 21/07/2009 3:27pm

Multilingual sites require also the form field labels to be translated, however that does not work yet with sites < SS 2.3.2. (SS 2.3.2 creates a complete new form for each language so you recreate the fields and label them in the language).

There is a workaround to translate the labels of the fields which works for SS 2.3.1 sites and is especially useful for everyone using the Multilingual Content - alternative to 'translatable'.

It requires activation of i18n and a small patch in /sapphire/forms/FormField.php.

All details are explained here Workaround for the translation of form labels in SS 2.3.1, however it is buried deeply in that thread there, so I post this note here to make it easier to find.

Hope it helps someone!