Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » User Defined Forms with multi-lingual web sites - not working

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 2799 Views
  • Patrick
    Avatar
    Community Member
    11 Posts

    Re: User Defined Forms with multi-lingual web sites - not working Link to this post

    Hi Robert,

    You can try the solutions posted above: change the default language in the \mysite\_config.php file to the language you want to create a form in.

    Hope this helps.

  • Robert1123
    Avatar
    Community Member
    6 Posts

    Re: User Defined Forms with multi-lingual web sites - not working Link to this post

    Thanks Patrick

    My understanding would be that if I changed this, then the I would be able to create the form in an alternative language, but then the english form would be in that language.

    Robert

  • Patrick
    Avatar
    Community Member
    11 Posts

    Re: User Defined Forms with multi-lingual web sites - not working Link to this post

    The way I understood the post (and you guys can correct me if I'm wrong) is this:

    For example, I have an English site with Spanish translation. I have a form in English that I want to translate.
    1) Change the default language of the form from English to Spanish.
    2) Go into the CMS and select English on the language tab, then edit the form I want translated.
    3) Go to the Translations tab, select Spanish and click on Create.
    4) Create your form and save+publish it (try with one field first so you don't waste time if it doesn't work).
    5) Once you're done, repeat the process with other languages and then put the default back to English.

    (Note: I'm typing this from memory)

  • contigo
    Avatar
    Community Member
    16 Posts

    Re: User Defined Forms with multi-lingual web sites - not working Link to this post

    Both Patrick and ayyurek's solutions worked for me on v2.4.5.

    The advantage to patrick's is it requires no code change, so non developers can do it. One difference - we handled the domain-per-locale routing in mysite/_config.php instead of .htaccess.

    We use ayyurek's solution when we don't have unique domains per locale.

    2799 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.