UserDefinedForm Translate Field Problem

Hi,

I create a fields and enter their names, names are changing in the both forms(English-German) while i am trying to translate.

Translate Module (GitHub - tractorcow/silverstripe-fluent: Multi-language translate module for Silverstripe, without having to manage separate site trees.)
UserDefinedForm Module (http://github.com/silverstripe/silverstripe-userforms)

I am using these modules.

I am creating the form as standard UsedDefinedForm.

Hi friends,

I solved the above problem. The solution is as follows.
we are writing mysite/_config/fluent.yml


Name: mysitefluent
After: ‘#versionedfiles

SilverStripe\UserForms\Model\EditableFormField:
extensions:
- TractorCow\Fluent\Extension\FluentVersionedExtension
translate:
- Title
- Placeholder
- Default
- RightTitle
- ShowInSummary

With ss 3.x, fluent 3.x & userform 4.x this worked - duno SS 4.x ect. Anyway you need to add the FluentExtension to some Models like:

EditableFormField:
  extensions:
    - FluentExtension
EditableOption:
  extensions:
    - FluentExtension
UserDefinedForm_EmailRecipient:
  extensions:
    - FluentExtension

Hi Lemi,

Which files should i add the models above?

Hi lerni,

could you please give some advice on how to put these extensions to the models? Which files?

Do any body have some tipps, how to use fluent and userforms with SS4?

Thanks in advance for your help.

Haven’t done that with 4.x but I guess you add the extension above in your yml-fluent config, dev/build and hopefully this does the trick. What have you tried and what problems did you face?

Can’t believe there isn’t any explanation how to do this anywhere else… I’m putting it here as Google points here. So, for me this worked with Silverstripe 4.6 and UserForms 5.7:

SilverStripe\UserForms\Model\EditableFormField:
  extensions:
    - TractorCow\Fluent\Extension\FluentVersionedExtension
SilverStripe\UserForms\Model\EditableFormField\EditableOption:
  extensions:
    - TractorCow\Fluent\Extension\FluentVersionedExtension
1 Like