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

User Defined Forms with multi-lingual web sites - not working


Go to End


12 Posts   5033 Views

Avatar
Patrick

Community Member, 11 Posts

4 June 2010 at 6:42am

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.

Avatar
Robert1123

Community Member, 6 Posts

4 June 2010 at 6:50am

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

Avatar
Patrick

Community Member, 11 Posts

4 June 2010 at 6:55am

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)

Avatar
Billy_

Community Member, 17 Posts

23 February 2012 at 1:07pm

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.

Go to Top